TeNDoLLA Posted July 19, 2011 Share Posted July 19, 2011 add this before running the query and paste results. echo $query; Quote Link to comment https://forums.phpfreaks.com/topic/242219-displaying-mysql-data-into-tables/page/2/#findComment-1244468 Share on other sites More sharing options...
Ptsface12 Posted July 19, 2011 Author Share Posted July 19, 2011 The query says ; Query was empty Quote Link to comment https://forums.phpfreaks.com/topic/242219-displaying-mysql-data-into-tables/page/2/#findComment-1244469 Share on other sites More sharing options...
TeNDoLLA Posted July 19, 2011 Share Posted July 19, 2011 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()); Quote Link to comment https://forums.phpfreaks.com/topic/242219-displaying-mysql-data-into-tables/page/2/#findComment-1244502 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.