Quote:
Originally Posted by jp12
How do I get this to only display data that is relevant for that particular username?
|
If $result must contain data for more than 1 user, say for other purposes in your script, than you need an IF statement in your while loop that looks for the id of the user whose data you want to display.
Otherwise it would be simpler to retrieve from the db just the record you need to display using something like
select * from users where id=xxxxx where xxxxx is the user's id in the db.