Re: Re: Not able to add data to a MySQL database

From: Date: Tue, 01 Mar 2005 03:17:33 +0000
Subject: Re: Re: Not able to add data to a MySQL database
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-25691@lists.php.net to get a copy of this message
Try removing the apostrophes around the field names that you are trying to insert data into: $query="insert into login (uname,access) values('try','super')"; Armando 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 : <?php $link=mysql_connect("localhost","username","password"); mysql_select_db("test_db"); $query="INSERT INTO 'login' ('uname','access') VALUES ('try','super')"; mysql_query($query,$link); ?>
ADD SOME ERROR CHECKING!!! http://php.net/die


« previous php.windows (#25691) next »