View Single Post
  #1 (permalink)  
Old 20-08-2008, 19:48
comports comports is offline
Member
 
Join Date: May 2008
Posts: 30
Default Another silly one

Thanks to Flesso I got the other bits sorted but have stubled at this hurdle. I want to delete stuff from the DB using php.

Code:
$sql="DELETE FROM table1 WHERE name=$name AND WHERE tel=$tel";
$result = mysql_query($sql);
This is what I have but it fails to delete..... I know thw values of $name and $tel are being passed in cos I did a print $sql and it looked right..

Any clues.

Thanks
Ash
Reply With Quote