Jump to content

Displaying MYSQL Data into Tables


Ptsface12

Recommended Posts

So echo the query variable also like I said in the post above ^^. And paste the result also here. Are you sure you are actually passing the $query variable to the mysql_query() - function? Since that would produce such a error as query was empty.

 

Edit: opps, if you copied that my example there was a bug. This

$query = "UPDATE users SET username = '$user', password = '$newpass', email = '$email', nickname = '$nickname'";
$result = mysql_query($sql) or die(mysql_error());

 

Should be.

$query = "UPDATE users SET username = '$user', password = '$newpass', email = '$email', nickname = '$nickname'";
$result = mysql_query($query) or die(mysql_error());

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.