I know this is a newbie question but this error keeps bugging me for a while now please help ty
<?PHP
include "configdb.php";
$id = $_POST['id'];
if (isset($id))
{
$newName = $id;
$sql = 'SELECT * FROM booklist WHERE id = $id';
$res = mysqli_query($connect, $sql) or die("Could not update".mysql_error());
$row = mysqli_fetch_row($res);
$id = $row[0];
$title = $row[1];
$author = $row[2];
$ISBN = $row[3];
$category = $row[4];
$image_upload = $row[5];
$image_upload2 = $row[6];
}
?>