on 1/25/01 1:12 PM, Robert ([EMAIL PROTECTED]) wrote:

> 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();}
> }

Why the single quotes around $sql.  It's a string so you shouldn't have to
quote it at all.

if (!mysql_query($sql)) {echo 'Unable to add part!'; }

Paul Burney
Webmaster and Internet Developer
Educational Technology Unit
Graduate School of Education and Information Studies
University of California, Los Angeles
(310) 825-8365

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to