11,570 Posted Topics
Re: Hi and welcome to DaniWeb! You’ll find yourself right at home here alongside many other longtime web developers. However, we do ask that you please don’t plug a link to your site, to keep our community spam-free. | |
Re: I don’t know VB at all but why do you have SHAPE { with an opening bracket but no closing } anywhere? | |
Re: Hi there!! I never got rid of the Java forum! Converting from a Forum to a Tag doesn't mean it's gotten rid of. https://www.daniweb.com/tags/java The conversion to a tag-based architecture was in response to the swiftly declining traffic, not the cause of it. I think people don't realize that because … | |
Re: Hi there and welcome to DaniWeb! What do you blog about? Or is it mostly just that you do paid content for clients? | |
Re: I wish I could help but unfortunately I don't know Assembly beyond one course I took in college, two decades ago. However, to rproffitt's point, it's usually considered good etiquette/technique to give someone credit in the code comments if you're copying/pasting their code. That being said, the bottom of the … | |
Re: I don't know C++, but here's how I would set something like this up in PHP: // All players have a name and belong to a team class Player { private $name; private $team; // Create a new player by passing in their name and team public function __construct($name, $team) … | |
Re: Remove the entire <script> section in the code you posted and instead use this: <script type="text/javascript"> // This executes right before displaying the modal $('#myModal).on('show.bs.modal', function (event) { var text = $("#linkbutton1").text(); $("#modal_body").html(text); }); </script> There's no need for the openModal() function because you're not using it anywhere anyways. | |
Re: Some portions of Google's various search algorithms are patented. Whether or not they're still using those patents, as is, is unknown, of course. | |
Re: The code that you are showing me is simple HTML code that produces a linkable image, followed by a little tracking pixel, and can be embedded anywhere. While I don't have any personal experience with Thymeleaf, it's a template engine that lets you insert HTML and include Java variables. We … | |
Re: Hi William and welcome to DaniWeb! Ah, loading time. With Google really pushing Core Web Vitals (aka site performance) a growing part of their algorithm nowadays, not to mention how site speed is directly related to user satisfaction and conversion rates, site speed is more and more important. The low … | |
Re: Is it possible the fan is installed a little bit off balance? | |
Re: Hello and welcome. What do you think of DaniWeb now that you’ve had some time to explore? | |
Re: What was so bad about your experience? I’ve never heard of them, although quite sad that Fry’s didn’t make it through the pandemic. I finally moved to a city that had a Fry’s … 3 actually … and the entire chain closes not long after. | |
Re: For those of you who didn't want to click the link, here is the code in the padlet: #include <iostream> using namespace std; void WardCharge(char, int, int); int main() { char categ; int ward_class, days; cout << "WELCOME TO HTAA SYSTEM\n\n"; while(true) { cout << "Category (G-government, N-non government): "; … | |
Re: > It’s also not Java. The question was tagged both c++ and java. I don't think the OP has a preference, and can probably follow along with either. | |
Re: Hi Praise! Nice to meet you!! :) What got you interested in affiliate marketing? My first experience with affiliate was reselling Amazon books (back when Amazon.com was just a bookstore!) for 10% commission back in 1998! My second experience with affiliate was putting a little Goto.com search box on my … | |
Re: That looks like a project that could take awhile. It's probably about a couple full day's work for a beginner programmer. Have you started yet? Do you have code you can show us so far including where you're stuck or where you need help? I urge you to begin working … | |
Re: Hello! Thank you for posting this. Here at DaniWeb, we use the [Markdown syntax](https://www.daniweb.com/welcome/syntax) for posting. (You can get to that page I just linked to by clicking the little question mark in the editor toolbar). If you scroll down that page to where it says Lists, you can see: … | |
Re: As I mentioned [in this post](https://www.daniweb.com/programming/web-development/threads/538477/is-htmlspecialchars-necessary-here#post2287282) the purpose of using htmlspecialchars(), urlencode(), and rawurlencode() is to make it easier for you to make your HTML code valid, and make your URLs valid. In the example you're providing, it's necessary to use `rawurlencode('Sales and Marketing')` because have you *ever* seen spaces … | |
Re: I'm having a hard time understanding what it is that you're trying to do. You say 371 videos but I only see 3 videos in your HTML, and you say that's the working code. Why do you have specific conditionals for August 1st, 2nd, and 3rd? I would do something … | |
Re: Is code like this still necessary anymore with the JDK including a web server by default, then? | |
Re: Thank you for resubmitting your code. It's much appreciated, to help us to help you :) That being said, when you have: <form action="product_list.php" method="post"> <input type="text" name="..."> <input type="submit"> </form> Then, unless you have Javascript that is preventing the default event action, the values of the text input fields … | |
Re: I don't have any experience with .NET, but I do have a lot of experience with Bootstrap, which is the CSS framework that we use here at DaniWeb. I'm very familiar with bootstrap modals because we use them all over this site. If you don't want the page to get … | |
Re: A 500 internal server error means there’s something wrong either with the server configuration or some type of fatal error in executing the code for the web app to where it’s unable to continue and simply fails. This would never happen because of the web browser you’re using or something … | |
Re: I don't know about C++, but PHP has a built-in function that does just this. When I follow rproffitt's link to Rosetta Code, there's this complicated NumberToEnglish() function. However, there's no need for any of this. Just use https://www.php.net/manual/en/class.numberformatter.php <?php $formatter = new NumberFormatter("en", NumberFormatter::SPELLOUT); echo $formatter->format(123); // Prints out … | |
Re: Basically what you're looking for is something to manage rate limiting or flood control. [I wrote a little code snippet up](https://www.daniweb.com/programming/web-development/code/538531/flood-control-using-redis) that shows the code we are using to manage flood control. We use Redis, a persistent caching mechanism. You can alternatively use Memcached to achieve something very similar. | |
Re: Can you provide an example of how someone can use this code in an editor? For example, a text editor class that actually utilizes this struct? Otherwise, on its own, there's not much value here. Why does the textnode need to include a pointer to the next textnode? What are … | |
Re: > This would seem to be outdated today as most systems are online. I think the point of the code that jnbgames.dev has been posting lately are meant more as learning exercises than code snippets that could actually be utilized in production in the real world. | |
Re: Thank you for posting this. What do you mean by a maze, though? Do you mean like a grid? | |
Re: Ahrefs free plan has some good core functionality as well. However, it’s definitely worth the money if organic SEO is really important to your business model. | |
Re: It is correct for your PHP code to begin with <?php and to end with ?>. However, if you have regular HTML mixed into the same file, you want to make sure that your opening and closing PHP blocks don't encapsulate your regular HTML code as well. If you could … | |
Re: Next.js is a Javascript framework that enables React-based websites to do server-side rendering. This is completely different functionality than PHP, and they are different tools for different jobs. You can port a PHP-based website to be written in back-end Javascript, instead, but it wouldn't actually be a line-by-line translation. You … | |
Re: You’re on the right track! The overloaded 0-arg constructor should set this.length and this.width, not just length and width as you have it. We are setting the object’s properties when we create a new Rectangle object, as so: public Rectangle(){ this.length = 0; this.width = 0; } The area variable … | |
Re: > Looking at https://rosettacode.org/wiki/Perfect_numbers#C I wonder if line 154 needs a change. How would you change it? Be helpful to people stumbling across this thread from a Google search and wanting the ability to copy/paste. (That's the point of our code snippet library, after all). | |
Re: On line 69 of the code snippet you posted, you deleted game1.highScore. Then, on line 70, you pass game1 into the function high_score(). When I look in that function beginning on line 269, I see you are setting game1.highScore to a value, and then returning a pointer to game1.highScore. I'll … | |
| |
Re: I'm sorry, I'm not understanding your question. Whenever `$c` is a string, regardless of if the value of that string is `bool` or `string`, if you do `settype($c, 'integer');` then the value of `$c` will be 0. $c = 'blah'; settype($c, 'integer'); // Results in $c is now the integer … | |
Re: So looking at customer_login.php, I'm not sure what you mean to do here: <form action="index.php" method="post" value="login_customer"> You cannot set a value of "login_customer" to the form itself. I think what you mean to do is: <form action="index.php" method="post"> <input type="hidden" name="action" value="login_customer"> The same is true on the product_register.php … | |
Re: Looking forward to you helping students in our computer science forums! You can add a link to your business in your [post signature](https://www.daniweb.com/connect/profile/community) so students who need extra 1-on-1 help can see that you're knowledgeable and hire you. | |
Re: Yes, but this question was asked 7 years ago. We can see that it aged well :) | |
Re: Without seeing any code, all that I can really do is a Google search which says the error message happens when you are referring to an object that doesn't exist. | |
Re: This it not my forte but I just wanted to jump in here and apologize for moving this question to our programming forum. I’ve moved it back to the MS Windows forum after googling your problem and seeing it’s related to Microsoft Excel. Is that correct? Good luck! Hopefully someone … | |
Re: Hello and welcome! Thank you for signing up! | |
Re: It doesn't look like you've attached the file. Please attach it as a .txt file. (Other file formats might be rejected by our system). | |
Re: Can you please explain what isn't working as you would expect it to? Are you getting any error messages? I see that in customer_search.php you have the code: <form action="customer_search.php" method="post"> However, it looks like customer_search.php is meant to be called from within index.php, and never called directly. Therefore, the … | |
Re: Sorry, there's not enough information here for me to really understand what you're asking? What do you mean by a referral system? What does the referral system do? What would the referral code be used for? When do you get bonuses? | |
Re: Unfortunately I don't, but I do use long polling with Codeigniter 3 to provide live chat. May I ask why you want to use websockets? Did you ever figure this out? So sorry that I am just seeing this post now. | |
Re: My apologies for just seeing this right now! I know this topic is a few months old, and you've probably already figured it out ... but I can't help myself. I use Codeigniter's CSRF token and I use AJAX a lot. (Note: I use Codeigniter 3). So, here's what I … | |
Re: `intval()` is used when you want to convert a variable, no matter what type of variable it is, to an integer. It can be useful if you are expecting the user to enter a number, but instead they enter a word, and you want to convert whatever they enter to … |
The End.