RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting

PHP Help needed badly

Join Date: Mar 2007
Posts: 17
Reputation: justinm is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
justinm justinm is offline Offline
Newbie Poster

Re: PHP Help needed badly

  #2  
Mar 28th, 2007
the easiest way is to setup a database if you have access, create a form that sends the login information from the session

$ARG['userid'] = $_SESSION['userid']';
$ARG['write'] = $_SESSION['level'];

or something, and then in your php use something like

$sql = "SELECT * FROM notes WHERE `userid` = '".$ARG['userid'].'" ORDER BY noteDate DESC;

if you have a database setup in that fashion, it will pull out all the notes for that individual. Then you use either a foreach or for, while or do{}while loop to output the data. even a nested if statement if you like...
Last edited by justinm : Mar 28th, 2007 at 12:28 am.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:50 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC