Re: SQL Insert problem

From: Date: Thu, 05 Aug 2004 15:04:16 +0000
Subject: Re: SQL Insert problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-35589@lists.php.net to get a copy of this message
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...

« previous php.db (#35589) next »