11,570 Posted Topics

Member Avatar for alvisanderson

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.

Member Avatar for Dani
0
18
Member Avatar for DavieBautista
Member Avatar for fnjomwas
Member Avatar for Dani
0
145
Member Avatar for extr3mex

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 …

Member Avatar for Dani
0
792
Member Avatar for aennadcruz

Hi there and welcome to DaniWeb! What do you blog about? Or is it mostly just that you do paid content for clients?

Member Avatar for Dani
0
11
Member Avatar for Ben_913

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 …

Member Avatar for Dani
0
119
Member Avatar for Iram_3

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) …

Member Avatar for Dani
0
99
Member Avatar for Catherine King

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.

Member Avatar for Dani
0
907
Member Avatar for venanciodayao18

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.

Member Avatar for Dani
0
227
Member Avatar for julian.l.bashev

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 …

Member Avatar for Dani
0
20
Member Avatar for Williamworse

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 …

Member Avatar for Dani
0
23
Member Avatar for cjasset23
Member Avatar for serenajones

Hello and welcome. What do you think of DaniWeb now that you’ve had some time to explore?

Member Avatar for Dani
0
97
Member Avatar for Paul_106

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.

Member Avatar for rproffitt
0
51
Member Avatar for aimannafis12333

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): "; …

Member Avatar for Dani
1
138
Member Avatar for emmamark

> 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.

Member Avatar for toneewa
0
222
Member Avatar for onlinesuccess

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 …

Member Avatar for Dani
0
26
Member Avatar for Ashwin01

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 …

Member Avatar for Dani
0
97
Member Avatar for borobhaisab

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: …

Member Avatar for Dani
0
107
Member Avatar for borobhaisab

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 …

Member Avatar for Dani
2
314
Member Avatar for jonsan32

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 …

Member Avatar for Dani
0
80
Member Avatar for jnbgames.dev

Is code like this still necessary anymore with the JDK including a web server by default, then?

Member Avatar for JamesCherrill
1
166
Member Avatar for Chloe_6

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 …

Member Avatar for Dani
2
333
Member Avatar for Catherine King

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 …

Member Avatar for Dani
0
935
Member Avatar for dot LI

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 …

Member Avatar for Dani
0
37
Member Avatar for jnbgames.dev

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 …

Member Avatar for Dani
0
480
Member Avatar for Vmr_574

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.

Member Avatar for Dani
0
104
Member Avatar for jnbgames.dev

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 …

Member Avatar for Dani
1
90
Member Avatar for jnbgames.dev

> 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.

Member Avatar for Dani
1
482
Member Avatar for jnbgames.dev

Thank you for posting this. What do you mean by a maze, though? Do you mean like a grid?

Member Avatar for Dani
1
336
Member Avatar for remahamed

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.

Member Avatar for annsalinas
0
206
Member Avatar for Michael_181

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 …

Member Avatar for Dani
0
83
Member Avatar for markanderson_1

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 …

Member Avatar for Dani
0
18
Member Avatar for Dysiah

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 …

Member Avatar for Dani
1
191
Member Avatar for jnbgames.dev

> 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).

Member Avatar for rproffitt
0
246
Member Avatar for Kate_12

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 …

Member Avatar for Dani
0
66
Member Avatar for natalieparker
Member Avatar for borobhaisab

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 …

Member Avatar for Dani
0
53
Member Avatar for Chloe_6

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 …

Member Avatar for Chloe_6
0
120
Member Avatar for professorhelp7

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.

Member Avatar for Dani
0
25
Member Avatar for KentDy
Member Avatar for Dani
0
363
Member Avatar for subodhpatil527

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.

Member Avatar for Dani
0
85
Member Avatar for niksirat

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 …

Member Avatar for Dani
0
39
Member Avatar for jjamesbenntt
Member Avatar for UnabashedGeek

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).

Member Avatar for Dkevinjames
0
163
Member Avatar for Chloe_6

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 …

Member Avatar for Chloe_6
1
81
Member Avatar for RC_820

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?

Member Avatar for Dani
0
127
Member Avatar for RC_820

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.

Member Avatar for Dani
0
73
Member Avatar for RC_820

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 …

Member Avatar for Dani
0
587
Member Avatar for borobhaisab

`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 …

Member Avatar for Dani
0
56

The End.