I have a website that is ran off of MySQL and PHP. I want to make a nice flash menu for the top. Most links are simple enough and just require a link to the php: i.e.
/browse.php
But when I member logs in and wants to check his/her profile it needs to get thier userid.
What is the best way to do this…I am primarily a designer, and secondly a coder…so the most simple/explained answer would be best.
I need the button to look like this in the end:
getURL("userdetails.php?id=<-Whatever their ID is!","_self");
This is what a wild guess start that I named: getuser.php
<?PHP
function userlogin()
global $SITE_ONLINE;
unset($GLOBALS["CURUSER"]);
<? <a>userdetails.php?id=$CURUSER[id]</a>
;?>
stdfoot();
?>
I am not opposed to using a completely different way , since I don’t know what I’m doing in the first place!
Case