Re: Newbie inserting into a database

From: Date: Fri, 14 May 2004 19:47:59 +0000
Subject: Re: Newbie inserting into a database
Groups: php.db 
Request: Send a blank email to php-db+get-34435@lists.php.net to get a copy of this message
Remove the single quotes or change to double quotes around the variables. (in the mysql_connect() statement) > Here is what I have so far? > <? > $DBname = "testdatabase"; > $host = "localhost"; > $user = "root"; > $password = "password"; > > > $dbconnect = > @mysql_connect('$host','$user','$password','$DBname'); > > I know this is wrong since I am not connecting. > > What I want to do is INSERT several values into a database. What am I > doing > wrong and what do I need to do after I connect (The Code)? 7 day old > problem here and pulling at my hair! Appreciate it!

« previous php.db (#34435) next »