11,530 Posted Topics

Member Avatar for UpvoteMarket

WordPress is the most popular blogging software on the web today. It’s easy to get started with it infinitely powerful if you grow into a power user over the years. If you plan on blogging, I would recommend WordPress. However, you can install WordPress on any server for free, and …

Member Avatar for Dani
0
26
Member Avatar for queency zyrel

Hi, Per our private chat, can you please give a little more detail in terms of where you are stuck or confused? Our goal is to help you complete the assignment, but also to teach you how to do it yourself, so you won’t need as much assistance next time.

Member Avatar for adajames
1
107
Member Avatar for Dani

According to [this page](https://developers.google.com/search/docs/advanced/experience/signed-exchange), Google requires "as a rule of thumb" that the SXG expiration date is less than 1 day in the future if the content is JS, or otherwise 7 days in the future. My external Javascript files are immutable. Why should they have a 1 day cache …

1
80
Member Avatar for borobhaisab

I’m not near my computer right now to double check, but if memory serves, I use UTF-8 for email and never had an issue. It would be recommended to use something like utf8 or utf8mb4 if you have a global audience where the email body can contain non-Latin characters. I …

Member Avatar for Dani
0
102
Member Avatar for queency zyrel

Here's someone else needing help about ten years ago with the same program in C++: https://www.daniweb.com/programming/software-development/threads/270987/multiple-math-function-options You can use what they have as a start, and work through debugging it. The easier way, of course, would be with if statements. They seemed to have used multiple functions. Have you learned …

Member Avatar for Dani
0
36
Member Avatar for dean.ong.14

> Parse error: syntax error, unexpected 'if' (T_IF) in C:\xampp\htdocs\merge\registration.php on line 3 To answer 2451-18-737-303 (albeit nearly a year late) You're missing { and } around all of your if statements: <?php include('connect.php') if(isset($_REQUEST['submit'])!=' ') { if($_REQUEST['name']=='' || $_REQUEST[email']=='' || $_REQUEST['password']=='' || $_REQUEST['repassword']=='') { echo "please fill the empty …

Member Avatar for Dani
1
5K
Member Avatar for Alida_3

You mention you're looking for an extension that promotes your products on instagram. Odeskavita mentioned that there are a handful of Instagram extensions for Magento ecommerce sites, but this requires you to be using Magento to power your ecommerce. If that's not the case, you can create an RSS feed …

Member Avatar for Dani
1
75
Member Avatar for Afonso_1

I was able to find [URLDownloadToFile()](https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/ms775123(v=vs.85)) but what is URLDownloadToFileA()? Is that a typo or a function you wrote?

Member Avatar for Dani
0
2K
Member Avatar for andrea.fornaro

We are an English-only forum :) Google Translation: *hello everyone, someone can help me ... I would like to make a form with a button that inserts the data into a db access when clicked, I would need the code for the connection to the db, and the statement for …

Member Avatar for Dani
0
77
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

I don’t know VB at all but why do you have SHAPE { with an opening bracket but no closing } anywhere?

Member Avatar for Dani
0
143
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
118
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
98
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
221
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
96
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
106
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
165
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
929
Member Avatar for Dani

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 …

Member Avatar for Dani
4
484
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
472
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
88
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
477
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
332
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
205
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
82
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
188
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
245
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

The End.