So you want to pull information from a database based on the users ID? Like a personal notes section?
PHP Code:
<? $myid = session->userinfo['id']; $ObtainInfo = mysql_query("SELECT * FROM `MyDB` WHERE `ID` = '".$myid."' LIMIT 1"); $Info = mysql_fetch_array($ObtainInfo);
echo $Info['note_content']; ?>
I'm not the most efficient coder in the world but I'm going to assume this is what you want to do.
Last edited by Tarquin; 11-06-2010 at 07:05 PM..
|