isabel heylen Member
 Since: 29 Mar 2007 Posts: 3 | Posted 12 Aug 2009 11:58:38 Hi,
I'm making a site with Dreamweaver and PHP/MySQL. The site is listing all vets from a certain area. The registrated clients/vets have a more profound access to this list (they can see the details of each vet, such as phone nmbr etc.) and should be able to edit their personal details (that are displayed in the above mentioned list).
Okay, so far so good: - I have the default list displaying all items correctly, - when a registrated user logs in, he/she is sent to the page listing all the vets, with links to the detailpage of each listing. - also, once logged in, in the menu appears a link to "edit profile".
Now, if this last link (edit profile) is clicked, I want to display ONLY the details for the person that logged in (based on their username and password that they used to log in) and add a 'edit' button.
The problem/question I have is: "How to display only this one record, based on the login info (username & password)?"
At this point, when I try, I always get the profile info from the first user_id... (not the personal details from the person that logged in)..
Any suggestions? Many thanks in advance!
rgds, isabel Hi,
I'm making a site with Dreamweaver and PHP/MySQL. The site is listing all vets from a certain area. The registrated clients/vets have a more profound access to this list (they can see the details of each vet, such as phone nmbr etc.) and should be able to edit their personal details (that are displayed in the above mentioned list).
Okay, so far so good: - I have the default list displaying all items correctly, - when a registrated user logs in, he/she is sent to the page listing all the vets, with links to the detailpage of each listing. - also, once logged in, in the menu appears a link to "edit profile".
Now, if this last link (edit profile) is clicked, I want to display ONLY the details for the person that logged in (based on their username and password that they used to log in) and add a 'edit' button.
The problem/question I have is: "How to display only this one record, based on the login info (username & password)?"
At this point, when I try, I always get the profile info from the first user_id... (not the personal details from the person that logged in)..
Any suggestions? Many thanks in advance!
rgds, isabel |