11,557 Posted Topics

Member Avatar for Gabriel Hinojosa

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 …

Member Avatar for rproffitt
0
343
Member Avatar for william_45
Member Avatar for Dani

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.

Member Avatar for rproffitt
0
4K
Member Avatar for Joseph_42

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

Member Avatar for Dani
0
395
Member Avatar for aveeva7

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.

Member Avatar for Supun_1
0
3K
Member Avatar for divinity02

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.

Member Avatar for Dani
0
363
Member Avatar for FarrisFahad

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 …

Member Avatar for Dani
0
4K
Member Avatar for Phlox.285

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 …

Member Avatar for Dani
0
507
Member Avatar for Phlox.285

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?

Member Avatar for Dani
0
4K
Member Avatar for divinity02

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 …

Member Avatar for paulmdavis0
0
358
Member Avatar for divinity02

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 …

Member Avatar for divinity02
0
332
Member Avatar for Mara_2

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

Member Avatar for rproffitt
-1
434
Member Avatar for Dagw300805

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 …

Member Avatar for Dagw300805
0
526
Member Avatar for Hasan_10

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 …

Member Avatar for Dani
0
2K
Member Avatar for Maulik_4

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 …

Member Avatar for Dani
0
1K
Member Avatar for 1981191919

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 …

Member Avatar for Dani
0
12K
Member Avatar for tun712

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 …

Member Avatar for tun712
0
5K
Member Avatar for Nayna_1
Member Avatar for Taher_3

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 …

Member Avatar for Dani
0
637
Member Avatar for Mara_2

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 …

Member Avatar for Dani
0
406
Member Avatar for Jeinel
Member Avatar for bhuiyanatik9

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 …

Member Avatar for Dani
0
389
Member Avatar for SimonIoa

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 …

Member Avatar for ABIO22
0
3K
Member Avatar for Reverend Jim

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 …

Member Avatar for Dani
0
3K
Member Avatar for Bostjan_K

Bostjan attempted to upload these files but it didn't work. For the sake of testing site functionality, here they are.

Member Avatar for rproffitt
1
4K
Member Avatar for malikashish
Member Avatar for Reverend Jim
Member Avatar for Zill_1
Member Avatar for menssouri83

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

Member Avatar for Dani
0
438
Member Avatar for Dani

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?

Member Avatar for happygeek
2
6K
Member Avatar for prudvi_1
Member Avatar for Dani
0
307
Member Avatar for Buggy_

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 …

Member Avatar for Dani
0
312
Member Avatar for jeslin_2k2

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 …

Member Avatar for Dani
-1
285
Member Avatar for Dani

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

Member Avatar for Dani
9
4K
Member Avatar for Edwin_11

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.

Member Avatar for Dani
0
807
Member Avatar for naveen123

Your CSS is all inline. Move this out to an external file. Also, switch to HTML 5 from XHTML, which is largely deprecated nowadays.

Member Avatar for Dani
-2
460
Member Avatar for Danny159

I think you're overcomplicating this. Something like: RewriteRule ^admin/([a-z]+)/$ admin/$1.php [L] RewriteRule ^([a-z]+)/$ $1.php [L]

Member Avatar for Dani
0
272
Member Avatar for tun712

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.

Member Avatar for Dani
0
1K
Member Avatar for sashika_sur

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 …

Member Avatar for Dani
0
466
Member Avatar for tun712

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/

Member Avatar for Dani
0
472
Member Avatar for manu555

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.

Member Avatar for Dani
0
367
Member Avatar for str91

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.

Member Avatar for Dani
0
402
Member Avatar for sobaan30

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

Member Avatar for Dani
0
429
Member Avatar for divinity02

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 …

Member Avatar for Dani
0
660
Member Avatar for manu555
Member Avatar for divinity02
Member Avatar for divinity02
0
453
Member Avatar for Rodney_4

HI there Rodney! Welcome to DaniWeb, and as I messaged you privately, congrats on pursuing your BA to start a second career.

Member Avatar for Reverend Jim
2
3K
Member Avatar for Dani

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 …

1
3K
Member Avatar for Reverend Jim

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 …

Member Avatar for Dani
0
3K
Member Avatar for adambb

What is your algorithm? Maybe if you try to explain it to us we can be of better assistance?

Member Avatar for Dani
0
430

The End.