Re: [PHP-DB] What wrong in this SQL

2003-02-27 Thread Alawi shekh albaity
wrong in this SQL A. Are you using a database that supports multitable deletes? B. Try joining, like: DELETE FROM cats a, articles b WHERE a.cat_id = $catid AND b.cat_id = $catid; Let me know. On Sat, 2003-03-01 at 01:03, Alawi shekh albaity wrote: What wrong with this code

Re: [PHP-DB] What wrong in this SQL

2003-02-27 Thread Adam Voigt
A. Are you using a database that supports multitable deletes? B. Try joining, like: DELETE FROM cats a, articles b WHERE a.cat_id = $catid AND b.cat_id = $catid; Let me know. On Sat, 2003-03-01 at 01:03, Alawi shekh albaity wrote: What wrong with this code in sql :

RE: [PHP-DB] What wrong in this SQL

2003-02-27 Thread Aaron Wolski
Try escaping the $catid like: WHERE cat_id='$catid' Aaron -Original Message- From: Alawi shekh albaity [mailto:[EMAIL PROTECTED] Sent: March 1, 2003 1:04 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] What wrong in this SQL What wrong with this code in sql : $SQ

RE: [PHP-DB] What wrong in this SQL

2003-02-27 Thread Ryan Jameson (USA)
TECTED] Subject: [PHP-DB] What wrong in this SQL What wrong with this code in sql : $SQLSTATEMENT["DeleteCategory"] = " DELETE FROM cats, articles WHERE cat_id = $catid "; Error no: 1064 Details : You have an error in your SQL syntax near 'WHERE cat_id = 1

[PHP-DB] What wrong in this SQL

2003-02-27 Thread Alawi shekh albaity
What wrong with this code in sql : $SQLSTATEMENT["DeleteCategory"] = " DELETE FROM cats, articles WHERE cat_id = $catid "; Error no: 1064 Details : You have an error in your SQL syntax near 'WHERE cat_id = 1 ' at line 4 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, v