
Originally Posted by
vishnurg
huy man ...
just an easy answer ..just pass the user id along with the link in the serach result and so the link on serach results will be like
profile.php?id='$row_seacrh[0]'
where $row_search is the arry used to store mysql result and id is in '0' th postion of that ..
and if you use 3 pages for the three user ,, just pass the link to a temp page where it find the type of user and redirect the browser to corresponding user page ...
i hope it will be ok now //but i wish to say one thing .....it will be more simple in structure if u put a field for 'user type' in the table ///
That should work but if he can't add a value into the table wouldn't it be easier to just md5 it for the url, for example.
Code:
profile.php?id={md5($row_search[0])}
That would at least give some kind of security and then they could just compare the md5 on the next page like.
PHP Code:
if($_GET['id'] == md5(1)) {
//Do 1 actions here.
} else if($_GET['id'] == md5(2)) {
//Do 2 actions here.
}
Then at least the users can't see it is in a simple numerical order, does that make sense?