11,557 Posted Topics
Re: This appears to be part of a homework assignment, in which txt files are required but you didn’t attach them to your post. Where are you stuck with this assignment? Are you getting any error messages? Please show us the code you have so far and explain where you’re stuck … | |
Chrome just prompted me to restart to update to the latest version, as it sometimes does. I did it, and the browser looks *entirely* different. Completely unexpected. It looks more like Firefox now, IIRC. Not really a problem with it, just surprised and thought I'd comment. | |
Re: They probably created an original account with Social login with Facebook or Google, and when they tried to log in this time, it created a brand new account instead of logging them in. I’ll investigate. :) | |
Re: If your form includes two submit buttons that each need to do something different, you can use AJAX (Javascript on the front end) to override the form action based on which button is pressed. | |
Re: You don't have a semi-colon after `header("location:login_user.php")` It should be `header("location:login_user.php");` It says the } is unexpected because it sees a } immediately after that line without a semi-colon first. | |
Re: Oh, my goodness! I used to use MassPay a few years ago but I don't know if I still have access to that old code base. I will try to pull it up and see if I can find something. The first thing I remember though about using MassPay is … | |
Re: I’m on my phone in bed so it’s hard to type our code but you can use php’s string repeater function. https://www.php.net/manual/en/function.str-repeat.php You can echo out the image html tag the number of times based on the rating. You could do this with a simple for loop as well but … | |
Re: I think the reason you haven't received any responses is because your question is confusing. What do you mean by define said row? Which row? Define in which way? I see line 4 you have `(THE UNDEFINED ROW)` but I'm not sure what you are trying to do? | |
Re: I’m on my phone so I can’t type much but blank pages are due to php fatal errors. Typically these are syntax errors, calling functions/methods that don’t exist, etc. You can set php logging to print out fatal errors instead of just a blank page. I don’t remember the syntax … | |
Re: This is a LOT of code for us to read and understand. If it's giving you an error message saying undefined index 'gender', that probably means that $_POST['gender'] is not defined. However, you have `$gender= isset($_POST['gender']) && !empty($_POST['gender']);` and I don't understand what you're trying to do there. It looks … | |
Re: Rproffitt, When I started DaniWeb, I launched it on the phpBB platform because I couldn’t afford a $100 vBulletin license. From a developer’s perspective, you may think $100 is almost nothing for the value of an entire fully functional web app. As a student, anything I couldn’t afford to buy, … | |
Re: It looks like you just want us to do your homework for you. Pseudo code is English that describes the steps needed (in English) to accomplish what you’re trying to do. Help us to help you by telling us what you think the answer to this part is, and we’ll … | |
Re: You need to provide some more information in order for us to be able to help you. I see here you are giving us an HTML form that asks a user for an old password, and to enter a new password twice. I understand what you want to do is … | |
Re: Sooooo many people used to inaccurately pick the code snippet format when they had a question, that eventually I had to switch it to where only senior community members could post code snippets. However, in doing so, the number of valid new code snippets dropped by like 90%, which is … | |
Re: So I see you have a list of DNS servers, but I'm not quite sure why. The web server should already have a way of resolving domain names to IP addresses. What you want to do instead for `curl_setopt($curl, CURLOPT_URL, $serverName);` is simply set $serverName to the IP address you're … | |
Re: This should be rather simple to do with jQuery, unless I'm misunderstanding what you're asking. First retrieve how many pixels from the top of the webpage the attribute you want to scroll to is. Here, we select the first element that has `data-attr=foo` and then calculate its position in the … | |
Re: So, just to make sure we're on the same page, you're using the https://datatables.net/ jQuery plug-in? Because that table takes an existing HTML-based `<table>` and adds some UI widgets to format it all nicely. I see that there's an option to retrieve the data via AJAX, and it seems that's … | |
Re: I concur with rproffitt's assessment that if you want the form to send an email, it needs to be hosted on a server that is capable of sending out email and has that correctly configured. I'm not familiar with Mobirise at all though. Is this functionality that they offer? How … | |
Re: This community isn't really for soliciting, but to share ideas with other marketers. I suggest that you participate in various Assassin's Creed facebook groups. I think that might be a good way of promoting your t-shirts in social media. You can also tweet with assassin's creed hashtags to get the … | |
Re: I think you're going to have a very hard time finding a font color that will be okay on backgrounds that are near-white, black, and any color inbetween. What I would recommend is to have the user specify if they want a light font or a dark font at the … | |
Re: You should be able to click on their avatar to get to their DaniWeb Connect Profile. Their avatar is next to all of their chat messages and also at the top of the page. This Connect Profile shows where they're geographically located, what (if anything) you have in common with … | |
Re: Bostjan attempted to upload these files but it didn't work. For the sake of testing site functionality, here they are. | |
Re: Try clearing your browser cache. (Not your cookies) | |
Re: Why is it funny? What am I missing? | |
Re: While the mysql_* functions were procedural, MySQLi supports either procedural or object oriented methods. Since you're already using procedural style, the simplest thing to do would be to replace the functions with their MySQLi counterparts. I think you should just be able to replace: * `mysql_connect` with `mysqli_connect` (https://www.php.net/manual/en/function.mysqli-connect.php) * … | |
I'm trying to save DaniWeb. :) What are the biggest pain points you have with DaniWeb? If you don't visit DaniWeb as much as you used to, what changed? Where do you go now instead of DaniWeb? What makes other resources better? | |
Re: Hey Buggy! Nice to virtually meet you. Do we know each other in person? From what I'm hearing, you're interests mostly lie with networking, cybersecurity, and systems admin type stuff. That's defintely a great field, but I think that you're going to get farther with RHCE, etc. certifications than you … | |
Re: Please, help us to help you. We are here to help, but saying "need javascript" with a blurb that's a mix of HTML and PHP, without even explaining what it does, why you posted it, what's not working, or what you're trying to do, makes it really hard for us … | |
Last week, we've had the most number of new member signups, excluding members who have been banned, for the first time in over a year! Good job, everybody :) | |
Re: I think, in this case, he is meaning to supply a working code snippet for people to use if they have a text box in which they don’t want the space bar or escape key to work. I think his snippet description had a language barrier. | |
Re: Your CSS is all inline. Move this out to an external file. Also, switch to HTML 5 from XHTML, which is largely deprecated nowadays. | |
Re: I think you're overcomplicating this. Something like: RewriteRule ^admin/([a-z]+)/$ admin/$1.php [L] RewriteRule ^([a-z]+)/$ $1.php [L] | |
Re: Well I can see you're calling audio.play() when an element with the equalizer class is clicked on. If you want to create other events, I'm confused where your confusion is? That being said ... just, PLEASE DON'T automatically play sounds from your web browser. It's an absolutely horrendous user experience. | |
Re: Without reading your code (because it's a lot to process), file uploads are not possible through AJAX alone. Apparently, browsers believe there is a security vulnerability of some type and prohibit it from working. In the past, we used a workaround with iframes to mimic AJAX file uploads. Today, we … | |
Re: Sorry, I'm not quite getting what it is you're trying to do. Are you trying to create a jQuery plugin? Per jQuery's official documentation: $.fn.greenify = function() { this.css( "color", "green" ); }; $( "a" ).greenify(); // Makes all the links green. More information at https://learn.jquery.com/plugins/basic-plugin-creation/ | |
Re: This seems to be a duplicate of [this thread.](https://www.daniweb.com/programming/web-development/threads/519255/php-webmail-pdf-attachment#post2249984) Either way, I still don't understand what you're asking. | |
Re: I'm not familiar with Joomla, but I suspect that the button has been dynamically generated by the Joomla app, and you need to be at least somewhat experienced in PHP in order to investigate this, unless it's easily found in one of their template files. | |
Re: It seems as if you're just asking us to do your homework for you, without even taking the time to explain to us what the assignment is. I get that you want help converting an algorithm to C++, but you're not doing a clear job expressing what the algorithm is, … | |
Re: I'm having a hard time understanding your code. You seem to have nested <html> tags, which is not valid HTML markup. You close one HTML tag on line 82 but then you have a <div> on line 84, so I'm confused what you're trying to achieve or what you want … | |
Re: Sorry, I'm not understanding what you're asking. | |
Re: What error message are you getting? What isn't working as intended? | |
Re: HI there Rodney! Welcome to DaniWeb, and as I messaged you privately, congrats on pursuing your BA to start a second career. | |
We just recently (read, today) implemented SameSite cookies to prevent CSRF attacks. The thing is, while there's a decent amount of information online about the benefits of them, I can't find any other sites that implement them. Not even any of the big ones I would suspect were spearheading something … | |
Re: I've been having a tough last couple of weeks (personal things going on) so I haven't spent a lot of time around here, unfortunately. I heard from James that there was downtime due to one of the Redis servers running out of memory. He was able to bring it back … | |
Re: What is your algorithm? Maybe if you try to explain it to us we can be of better assistance? |
The End.