Re: [PHP] deleting muliple feilds from a table using an array

2006-03-24 Thread benifactor
thanks all, very helpful! - Original Message - From: "Brady Mitchell" <[EMAIL PROTECTED]> To: "benifactor" <[EMAIL PROTECTED]>; "php" Sent: Friday, March 24, 2006 1:21 PM Subject: RE: [PHP] deleting muliple feilds from a table using an array &

RE: [PHP] deleting muliple feilds from a table using an array

2006-03-24 Thread Brady Mitchell
> -Original Message- > example code: > //implode the value of the submitted form > //$del will look like 38, 40, 43 > $del = implode(",", $idd); > //create query for the deletion of values from submited form > $query = "delete From news where id = '$del'"; > //execute query > mysql_query(

Re: [PHP] deleting muliple feilds from a table using an array

2006-03-24 Thread Robin Vickery
On 24/03/06, benifactor <[EMAIL PROTECTED]> wrote: > > //$del will look like 38, 40, 43 > > $query = "delete From news where id = '$del'"; > > This code will only delete the first value of $idd. what i think is wrong is > i have the incorrect syntax to delete multiple feilds from a table if some

[PHP] deleting muliple feilds from a table using an array

2006-03-24 Thread benifactor
example code: //implode the value of the submitted form //$del will look like 38, 40, 43 $del = implode(",", $idd); //create query for the deletion of values from submited form $query = "delete From news where id = '$del'"; //execute query mysql_query($query) or die(mysql_error()); //echo sucess m