Jump to content


Photo

echoing results


  • Please log in to reply
4 replies to this topic

#1 timtom3

timtom3
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 05 March 2006 - 10:27 PM



Hi

on 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

#2 php_b34st

php_b34st
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts

Posted 05 March 2006 - 10:30 PM

can you show us some code?

I just looked at the link and it is the code, my error

#3 php_b34st

php_b34st
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts

Posted 05 March 2006 - 10:43 PM

try:

$username =  $HTTP_GET_VARS['username'];

 $result = $connector->query("SELECT * FROM cmsusers cu, cmscourses cc WHERE cu.username = cc.username AND cu.username = '$username'");


#4 timtom3

timtom3
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 05 March 2006 - 10:46 PM

[!--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) View Post[/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]

#5 timtom3

timtom3
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 05 March 2006 - 11:01 PM

[!--quoteo(post=351911:date=Mar 5 2006, 05:46 PM:name=timtom3)--][div class=\'quotetop\']QUOTE(timtom3 @ Mar 5 2006, 05:46 PM) View Post[/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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users