Re: SQL Insert problem (SOLVED), Thanks!

From: Date: Mon, 09 Aug 2004 00:04:18 +0000
Subject: Re: SQL Insert problem (SOLVED), Thanks!
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-35623@lists.php.net to get a copy of this message
Thank you all for the help. I can't believe I forgot something so simple yet crucial. Thanks again for all the help. Vinny > -----Original Message----- > From: John W. Holmes [mailto:holmes072000@charter.net] > Sent: Thursday, August 05, 2004 11:04 AM > To: Vincent Jordan; php-db@lists.php.net > Subject: [SPAM] Re: [PHP-DB] SQL Insert problem > > From: "Vincent Jordan" <vjordan@smartparts.com> > > > > > $sql = "INSERT INTO rmarequest (firstname, lastname, address, > > > > address2, > > > > city, state, zip, phone, email, serial, product, reason, > > > > rmanumber)VALUES > > > > ('$firstname', '$lastname', '$address', > > > > '$city', '$state', > > > > '$zip', '$phone', > > > > '$email', '$serial', '$product', > > > > '$reason', '$rmanumber') or die > > > > (mysql_error())"; > > Uhhhmmmm......... where's mysql_query()??????? > > $sql = "INSERT ..."; > > $result = mysql_query($sql) or die(mysql_error()); > > ---John Holmes... > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#35623) next »