timtom3 Posted March 5, 2006 Share Posted March 5, 2006 Hion here [a href=\"http://members.lycos.co.uk/timtom1111/script.txt\" target=\"_blank\"]http://members.lycos.co.uk/timtom1111/script.txt[/a] my script isn't displaying the information, the SQL statement does work when carried out in the databse?I know i am doing something stupid as I have it working without the last bit on just displaying one record but I need to display it when username is present Quote Link to comment Share on other sites More sharing options...
php_b34st Posted March 5, 2006 Share Posted March 5, 2006 can you show us some code?I just looked at the link and it is the code, my error Quote Link to comment Share on other sites More sharing options...
php_b34st Posted March 5, 2006 Share Posted March 5, 2006 try:[code]$username = $HTTP_GET_VARS['username']; $result = $connector->query("SELECT * FROM cmsusers cu, cmscourses cc WHERE cu.username = cc.username AND cu.username = '$username'");[/code] Quote Link to comment Share on other sites More sharing options...
timtom3 Posted March 5, 2006 Author Share Posted March 5, 2006 [!--quoteo(post=351905:date=Mar 5 2006, 05:30 PM:name=php_b34st)--][div class=\'quotetop\']QUOTE(php_b34st @ Mar 5 2006, 05:30 PM) [snapback]351905[/snapback][/div][div class=\'quotemain\'][!--quotec--]can you show us some code?I just looked at the link and it is the code, my error[/quote]hi doesn't give any errors just doesn't display the data[a href=\"http://members.lycos.co.uk/timtom1111/admin/profiletest.php?username=mkandola\" target=\"_blank\"]http://members.lycos.co.uk/timtom1111/admi...ername=mkandola[/a] Quote Link to comment Share on other sites More sharing options...
timtom3 Posted March 5, 2006 Author Share Posted March 5, 2006 [!--quoteo(post=351911:date=Mar 5 2006, 05:46 PM:name=timtom3)--][div class=\'quotetop\']QUOTE(timtom3 @ Mar 5 2006, 05:46 PM) [snapback]351911[/snapback][/div][div class=\'quotemain\'][!--quotec--]hi doesn't give any errors just doesn't display the data[a href=\"http://members.lycos.co.uk/timtom1111/admin/profiletest.php?username=mkandola\" target=\"_blank\"]http://members.lycos.co.uk/timtom1111/admi...ername=mkandola[/a][/quote]:( still not displaying anything Quote Link to comment 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.