jamesxg1 Posted February 1, 2009 Share Posted February 1, 2009 <?php $id = mysql_real_escape_string($_GET['id']); $username = mysql_real_escape_string($_GET['username']); $sql = "SELECT * FROM `comments` WHERE `id`='$id' OR `comto`='$username' LIMIT 1"; $query = mysql_query($sql); THIS IS WHERE I NEED THE REST OF THE CODE THAT IM STUMMPED ON :S ?> thats the code i have what i need it to do next is delete a row out of my database where the id = $id Link to comment https://forums.phpfreaks.com/topic/143389-solved-what-do-i-add-next/ Share on other sites More sharing options...
peranha Posted February 1, 2009 Share Posted February 1, 2009 $query = "DELETE FROM comments WHERE id = '$id'"; $result = mysql_query($query); Something like that. Link to comment https://forums.phpfreaks.com/topic/143389-solved-what-do-i-add-next/#findComment-752102 Share on other sites More sharing options...
jamesxg1 Posted February 1, 2009 Author Share Posted February 1, 2009 $query = "DELETE FROM comments WHERE id = '$id'"; $result = mysql_query($query); Something like that. worked thanks mate. Link to comment https://forums.phpfreaks.com/topic/143389-solved-what-do-i-add-next/#findComment-752105 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.