insert in mysql
| From: | Robert | Date: | Thu, 25 Jan 2001 21:12:39 +0000 |
| Subject: | insert in mysql | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-6192@lists.php.net to get a copy of this message | ||
ignore that last one :)
I goofed...
Still not working right though
if($act=="ADD"){
$sql="INSERT INTO ecomm (ID,part) VALUES ('$sid','$spp')";
if(! mysql_query('$sql')){echo("Unable to add part.");mysql_close($db);exit();}
}
just gives me "Unable to add part"