View Single Post
Old 10-29-2012, 10:58 PM   PM User | #3
mr3army
New Coder

 
Join Date: Oct 2012
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
mr3army is an unknown quantity at this point
Quote:
Originally Posted by Fou-Lu View Post
That's unusual; you shouldn't be getting a query is empty from this.
You should be able to verify this by modifying this: $result = mysql_query($order); to this: $result = mysql_query($order) or die('Failed to execute query: ' . $order . ', error: ' . mysql_error());. I'm not going to lie, I'm not convinced that the problem is here.

Edit:
BTW, if you don't see that error string in the die, then the problem is not here. If you do, post that in its entirety.
Hello,
No error the script runs but the textboxes don't contain the information they are supposed to hmm (
Perhaps the fact that i'm using ID?
The best I can get is the boxes all filled but with the first users data
That was
Code:
      $order = "SELECT * FROM members where id='$id'";
To
Code:
   $order = "SELECT username FROM members";
So i'm certain that the error is here.Let me know

Last edited by mr3army; 10-29-2012 at 11:14 PM..
mr3army is offline   Reply With Quote