Dethman Posted January 23, 2009 Share Posted January 23, 2009 It gives me an error "Check SQL Manual for Right Method" <?php $id = $_SESSION['game_session']; $query=("DELETE * FROM `players` WHERE `GameID` = '{$id}`"); $res=mysql_query($query) OR DIE ("ERROR <BR /><BR /><BR />".mysql_query()); if( $res ){ unset($_SESSION['game_session']); } ?> Any Help would be awesome, Brian Flores CEO NimbusGames,llc Link to comment https://forums.phpfreaks.com/topic/142170-solved-is-this-query-right/ Share on other sites More sharing options...
Maq Posted January 23, 2009 Share Posted January 23, 2009 You had a backtip rather than a single quote after $id}... $query=("DELETE * FROM `players` WHERE `GameID` = '{$id}'"); Link to comment https://forums.phpfreaks.com/topic/142170-solved-is-this-query-right/#findComment-744727 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.