03-24-2019, 06:25 PM
Ok. Sure. So let's walk through that.
Let's say you have a page called dossier.php and you are calling that page as dossier.php?id=3 (the user's id).
Your code would look like this...
https://pastebin.com/yUut6CbR
So what I did there is grabbed the id from the URL and did a query of the users table where the user id was that number. If you have your data stored in a different table, just change the table in the infoQ query.
Then I made a table to show all the data. If you only want to echo out certain data, you don't need the foreach loop. You can just do echo $info->columname;
Hope that helps.
Let's say you have a page called dossier.php and you are calling that page as dossier.php?id=3 (the user's id).
Your code would look like this...
https://pastebin.com/yUut6CbR
So what I did there is grabbed the id from the URL and did a query of the users table where the user id was that number. If you have your data stored in a different table, just change the table in the infoQ query.
Then I made a table to show all the data. If you only want to echo out certain data, you don't need the foreach loop. You can just do echo $info->columname;
Hope that helps.