Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
03-28-2013, 08:53 PM #1
- Join Date
- Jun 2012
- Thanked 0 Times in 0 Posts
myqsl database download of data to website page
I'm trying to display data on a webpage that is relevant to that particular username. The only thing that would be completely unique for each row of data is the ID column.
Currently, I'm able to display the data from each row but it displays all of the rows due to a while loop.
Then the table code echos the $rows amd variables.
// close while loop
How do I get this to only display data that is relevant for that particular username?
03-28-2013, 09:30 PM #2
Change the SQL query. Which you didn't bother to show us, so I have no idea what it looks like.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
03-29-2013, 03:07 AM #3
- Join Date
- Mar 2013
- Thanked 9 Times in 9 Posts
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=xxxxxwhere xxxxx is the user's id in the db.