Re: [PHP] Not able to add data to a MySQL database

2005-02-28 Thread John Holmes
Richard Lynch wrote: Vaibhav Sibal wrote: Hi, I am not able to insert data into my mysql database using php even if i use a simple code as follows : ADD SOME ERROR CHECKING!!! http://php.net/die and http://us2.php.net/mysql_error ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/

Re: [PHP] Not able to add data to a MySQL database

2005-02-28 Thread Richard Lynch
Vaibhav Sibal wrote: > Hi, > I am not able to insert data into my mysql database using php even if > i use a simple code as follows : > $link=mysql_connect("localhost","username","password"); > mysql_select_db("test_db"); > $query="INSERT INTO 'login' ('uname','access') VALUES ('try','super')"; >

[PHP] Not able to add data to a MySQL database

2005-02-25 Thread Vaibhav Sibal
Hi, I am not able to insert data into my mysql database using php even if i use a simple code as follows : even after running this code on the server, there was no change in the mysql database as seen by the phpmyadmin. Ive tried it with another file and another table, but its not just happening.