11,557 Posted Topics
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 … | |
Here is the function that I use here at DaniWeb to manage flood control. It keeps track of how often a specific user or IP address is making a request, and increments a counter. If there have been no requests after 5 minutes, the counter resets to 0. It returns … | |
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 … | |
Re: The main use cases for `var_dump()` and `var_export()` would be for debugging purposes or logging errors. When debugging your code, you might want to be able to spit out the structure and contents of an array or object to understand what went wrong. | |
Re: The URLs that you linked to for the two page formats are located at https://localhost/, which means that only you have access to them, since they're being served locally from your computer. Therefore, I can't tell what is on those pages. You do want to HTML escape content with an … | |
Re: I think Microsoft Access (or pretty much any database software) would suit your needs here as far as just a simple method to create records with these four field types. As far as which is the right tool for the job, I think it would completely depend upon whether you … | |
Re: eBay has an official list of bulk listing tools that it seems that they develop in-house available at https://www.ebay.com/sellercenter/listings/ebay-bulk-listing-tools Specifically, they have a [multiple listing tool](https://bulksell.ebay.com/ws/eBayISAPI.dll?BEAR&workspaceType=22) | |
Re: So is the nature of the web :) How much traffic do you get from search engines such as Google, social media, returning traffic, etc? Also, what is the nature of your site? (E-commerce, publishing, etc). | |
Re: I'm not sure what rproffitt is referring to, but as someone who runs a site, the only common thing I can think of that might limit whether we might block traffic or not is a non-standard user agent (e.g. that screams bot). Many years ago, my cable ISP's DNS servers … | |
What page do you typically start at when using DaniWeb? * Using the search bar to conduct a search * [Activity Stream](https://www.daniweb.com/stream) * [Forums](https://www.daniweb.com/forums) * [Latest Recommended Topics](https://www.daniweb.com/articles/latest/recommended) * [All Latest Topics](https://www.daniweb.com/articles/latest) * [All Newest Topics](https://www.daniweb.com/articles/latest?sort=started) * Something else ...? | |
Re: This list is really super old (13+ years) and many of the blogs on this list don't exist anymore, and we aren't really allowing new postings in our forums like this because it's turned into such a spam-fest. In the future, I would urge you to go to https://www.blackhatworld.com because … | |
Re: <img id="photo" img src="photo.jpg> The pjoto is in same folder as code. You are missing the closing quote after photo.jpg. You also have an extra img inside the tag. It should be: <img id="photo" src="photo.jpg"> The pjoto is in same folder as code. The Films opening div tag is missing … | |
Re: There's no such thing as a dumb question, and I would like to think that we were a friendly community where people shouldn't be scared to post here in fear of being completely insulted or offended. So, for that, Mr_154, I apologize that this was your first impression of our … | |
Re: > Maybe it needs an update to include "don't feed the students answers." That's not against our rules. | |
Re: Use next-gen image formats. Photos should be JPEGs, animated images should be GIFs, icons and vectors that need to scale should be SVGs, and everything else shoudl be PNGs. |
The End.