Re: Not able to add data to a MySQL database

From: Date: Tue, 01 Mar 2005 01:29:05 +0000
Subject: Re: Not able to add data to a MySQL database
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-209654@lists.php.net to get a copy of this message
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
and http://us2.php.net/mysql_error ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#209654) next »