ballhogjoni Posted July 27, 2007 Share Posted July 27, 2007 can some one tell me what I am doing wrong with this code? I know it has something to do with the session. $query = mysql_query("SELECT * FROM users WHERE user_id = '$_SESSION['user_id']'"); Link to comment https://forums.phpfreaks.com/topic/61952-solved-mysql-syntax-error/ Share on other sites More sharing options...
pocobueno1388 Posted July 27, 2007 Share Posted July 27, 2007 <?php $query = mysql_query("SELECT * FROM users WHERE user_id = '{$_SESSION['user_id']}'"); ?> Link to comment https://forums.phpfreaks.com/topic/61952-solved-mysql-syntax-error/#findComment-308488 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.