Lamez Posted December 18, 2007 Share Posted December 18, 2007 what does this mean? Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /mounted-storage/home48c/sub007/sc33591-LWQU/www/user/userinfo.php on line 47 I know it is saying I am missing a ; or a , but where? here is line 47, any help? $query = mysql_query("SELECT u.username FROM users u INNER JOIN active_users a ON a.username=u.username WHERE a.timestamp < (NOW() - INTERVAL 5 MINUTE) AND u.username=$req_user_info['username']")or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/82134-solved-quick-question/ Share on other sites More sharing options...
pocobueno1388 Posted December 18, 2007 Share Posted December 18, 2007 Change it to this <?php $query = mysql_query("SELECT u.username FROM users u INNER JOIN active_users a ON a.username=u.username WHERE a.timestamp < (NOW() - INTERVAL 5 MINUTE) AND u.username='{$req_user_info['username']}'")or die(mysql_error()); ?> Quote Link to comment https://forums.phpfreaks.com/topic/82134-solved-quick-question/#findComment-417366 Share on other sites More sharing options...
Lamez Posted December 18, 2007 Author Share Posted December 18, 2007 no that did not work at all. dang! Quote Link to comment https://forums.phpfreaks.com/topic/82134-solved-quick-question/#findComment-417367 Share on other sites More sharing options...
pocobueno1388 Posted December 18, 2007 Share Posted December 18, 2007 Show more code that is around line 47. Your query should have been giving an error though, and what I changed it to should have fixed that. Quote Link to comment https://forums.phpfreaks.com/topic/82134-solved-quick-question/#findComment-417370 Share on other sites More sharing options...
kenrbnsn Posted December 18, 2007 Share Posted December 18, 2007 Can you post a few lines before that line between tags? Ken Quote Link to comment https://forums.phpfreaks.com/topic/82134-solved-quick-question/#findComment-417373 Share on other sites More sharing options...
Lamez Posted December 18, 2007 Author Share Posted December 18, 2007 omg, sorry for wasting your time I forgot a ; in my echo above the line, sorry thanks though now it shows if the user is on or off line! Quote Link to comment https://forums.phpfreaks.com/topic/82134-solved-quick-question/#findComment-417376 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.