Re: [PHP] PHP & MySQL problems, updating database..

2002-01-17 Thread Miles Thompson
Hawk, If you have a working login, can we safely assume that there is information in the database for each user? If so, then we won't bother discussing insert statements, but concentrate on updates. We'll also assume that $user has update privileges on the database. The normal form of an upda

Re: [PHP] PHP & MySQL problems, updating database..

2002-01-17 Thread Dennis Moore
Try using mysql_error() to display the mysql error message before issuing your die(). this will give more information to troubleshoot. You may not have the right privileges set up in your database where you can update or insert into the database or table. /dkm - Original Message - Fr

Re: [PHP] PHP & MySQL problems, updating database..

2002-01-17 Thread Erik Price
The reason you aren't seeing any errors is because you used "or die()" -- to the best of my knowledge, this replaces any standard errors that PHP would normally generate. It appears that you have omitted the second argument to mysql_query(). A common mistake that I've made many times myself.