Jump to content

Query was empty??


livewirerules

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.