Login Register


Help with Updating database from PHP? filter_list
Author
Message
RE: Help with Updating database from PHP? #11
(07-27-2016, 09:06 PM)Ex094 Wrote: Oh jeez, I think we got it. You forgot to add the Value attribute to the OPTION tags hence it's returning gamer_tag null I think

Replace this line:
Code:
echo "<option>" . $row['user_name'] . "</option>";

With this:
Code:
echo "<option value='" . $row['user_name'] .  "'>" . $row['user_name'] . "</option>";

Also just in case to make sure inputs are coming correctly, Echo out all the POST variables like:
Code:
echo $gamertag; echo $rank; echo $tag; echo $order;

Okay so it is doing it correctly by pulling in the values

Its outputting like tis

New records created successfully test Recruit [DSxR] 27

but it is still not updating it in the database
“I am thankful for all of those who said NO to me. It’s because of them I’m doing it myself.” – Albert Einstein

Reply





Messages In This Thread
Help with Updating database from PHP? - by mudrig - 07-27-2016, 07:50 PM
RE: Help with Updating database from PHP? - by mudrig - 07-27-2016, 09:31 PM



Users browsing this thread: 2 Guest(s)