User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,628 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,780 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 516 | Replies: 1
Reply
Join Date: Mar 2007
Posts: 1
Reputation: foxycutty is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
foxycutty foxycutty is offline Offline
Newbie Poster

PHP Help needed badly

  #1  
Mar 27th, 2007
Hi all. I am currently a final year Multimedia design student and am creating a website for a band for my university project. I wanted to incorporate a 'Bebo' type comments page where the band members could log on and leave comments about where they are and what they are doing when they get the chance to. It serves the purpose of a blog in a sense but makes it a little more interesting and modern.

I would just like to know how to go about this? I really don't have a clue

any help would be greatly appreciated :cheesy:

thanks
AddThis Social Bookmark Button
Reply With Quote  
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 27th, 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 27th, 2007 at 11:28 pm.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 12:56 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC