Re: Not able to add data to a MySQL database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux