Single around the variable....

mysql_query("DELETE FROM product WHERE manufacturer='$hidden_manuf_id'",$bb)

Timothy Hitchens

Phil Clark wrote:
> I'm trying to insert the variable $hidden_manuf_id into a mysql_query()
> statement.
> If i do this:
> mysql_query("DELETE FROM product WHERE manufacturer=$hidden_manuf_id",$bb)
> or die(mysql_error());
> PHP server doesn't see the variable because it is inside the string
> quotes"".
> If I do this:
> mysql_query("DELETE FROM product WHERE manufacturer="$hidden_manuf_id,$bb)
> or die(mysql_error());
> PHP server reports a parsing error.
> What is the correct syntax?  ($bb is correctly defined.)

Timothy Hitchens
Technologist / Entrepreneur
mobile: 0419 521 440

HiTCHO Group - ABN: 85 816 540 110
Web Site:
Snail Mail: PO Box 101 Arana Hills QLD 4054
Telephone: 07 3351 0951 - Facsimile: 07 3351 0952

This email may be the view of the individual and
not that of the organisation. The contents of
this electronic mail (including attachments) may
be privileged and commercially confidential.

Any unauthorised use of the contents is expressly
prohibited. If you have received this document in
error, please advise us by telephone immediately
and then delete the document.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to