Re: mysql trouble

From: Date: Wed, 26 Feb 2003 00:55:49 +0000
Subject: Re: mysql trouble
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137166@lists.php.net to get a copy of this message
Quoting Luis A <webmaster@iscf.esisc.colombus.cu>: ### hi pasl i got a troblem here ### ### ### if some one can help me ? ### ### take a look at this ### <?php ### // process form ### $link = mysql_connect("localhost", "root"); you need to have the password as the third argument $link = mysql_connect("localhost", "root", "password"); Also, why is it in a variable? Just make it: mysql_connect("localhost", "root", "password"); ### mysql_select_db("mydb",$db); ### $sql = "INSERT INTO agenda (nombre, direccion, telefono, email) " + ### "VALUES ('$nombre', '$direccion', '$telefono', '$email')"; ### $result = mysql_query($sql); ### echo "¡Gracias! Hemos recibido sus datos.\n"; ### ### ?> ### ### ### ### HE DOES NOT WORKING ### ### any subjest ? ### ### ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. rw@xend.net * http://xend.net * 602-971-2791 * * * * * *__ * * _/ \___ * * / * \* * */ * * \ * */\_ |\ / \_ / \ / \____/ \ / \ / \ / \

« previous php.general (#137166) next »