how is that ?????? ----- Original Message ----- From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Luis A'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 8:07 PM Subject: RE: [PHP] mysql trouble
> > take a look at this > > <?php > > // process form > > $link = mysql_connect("localhost", "root"); > > mysql_select_db("mydb",$db); > > $sql = "INSERT INTO agenda (nombre, direccion, telefono, email) " + > > "VALUES ('$nombre', '$direccion', '$telefono', '$email')"; > > $result = mysql_query($sql); > > You use a period (.) to concatenate strings, not a plus (+) symbol. > > If you displayed $sql, like you should when you're debugging your > script, you'd of realized this a long time ago. > > ---John W. Holmes... > > PHP Architect - A monthly magazine for PHP Professionals. Get your copy > today. http://www.phparch.com/ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php