•
•
•
•
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
![]() |
•
•
Join Date: Mar 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
•
•
Join Date: Mar 2007
Posts: 17
Reputation:
Rep Power: 2
Solved Threads: 0
the easiest way is to setup a database if you have access, create a form that sends the login information from the session
or something, and then in your php use something like
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...
$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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- PHP Programmer needed on contract basis (Web Development Job Offers)
- PHP Coder needed to finish website - URGENT (Web Development Job Offers)
- PHP Programmer needed (CMS) (PHP)
- PHP coder needed for online game (Web Development Job Offers)
Other Threads in the PHP Forum
- Previous Thread: code output not correct
- Next Thread: operations


Linear Mode