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 Quote 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}'"); Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.