livewirerules Posted October 10, 2007 Share Posted October 10, 2007 im tryn to delete a complete row from the database but when i click the delete link i get this error Query was empty.can someone pls help me <?php /* deletemovie.php delete movies from the database */ session_start(); ob_start(); include("includes/conn.php"); include("auth.php"); include("../template/header.html"); //$id=$_GET['memberid']; //$sq1="SELECT * FROM `movie_info` WHERE `memberid`='$_GET[memberid]'"; //$result=mysql_query($sql) or die(mysql_error()); //$row=mysql_fetch_array($result); $sql="DELETE * FROM `movie_info` WHERE memberid = '$_GET[memberid]'"; $result=mysql_query($sql) or die(mysql_error()); echo "Deleted"; header("Location:manage_movies.php"); exit(); ?> Link to comment https://forums.phpfreaks.com/topic/72594-query-was-empty/ Share on other sites More sharing options...
adam291086 Posted October 10, 2007 Share Posted October 10, 2007 as i am new im not sure, but shouldn't you be using $_post instead of get Link to comment https://forums.phpfreaks.com/topic/72594-query-was-empty/#findComment-366064 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.