Jump to content


Photo

Php/sql select


  • Please log in to reply
2 replies to this topic

#1 kevloink

kevloink
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 23 October 2006 - 07:48 AM

I am trying to do this:

SELECT user_points FROM `phpbb_users` WHERE username='kevloink'

but in php, and then display the result.  I have been editing my code for about 45 mins.  Its 1:47 am, I have to go to school at 8 am, and I still have homework to do so I decided instead of wasting my time I would ask for help.

#2 JasonLewis

JasonLewis
  • Members
  • PipPipPip
  • Advanced Member
  • 3,351 posts
  • LocationVictoria, Australia

Posted 23 October 2006 - 09:27 AM

you want to get the data out. like this:

$user_points = mysql_result(mysql_query("SELECT `user_points` FROM `phpbb_users` WHERE `username`='kevloink'"),0);

~jay
Good luck with your coding.
Jason / ProjectFear / Jaysonic

#3 kevloink

kevloink
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 23 October 2006 - 12:57 PM

THANK YOU!  ;D ;D ;D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users