Simple PHP Question
- Started
- Last post
- 31 Responses
- ********0
well you're probably going to have to do some database interaction for that... it's not really a 5 minute thing...
- epikore0
ok, thanks for the help.
- ********0
have you done work with database stuff before?
- epikore0
never, I just started to study php
- falcadia0
I think you are looking for shoutbox or guestbook script more than a forum. Google for php shout box script and you will find plenty.
- welded0
I recommend searching out some tutorials. What you want to do isn't tough, but it can be a little complicated without a little more practice.
- ********0
ok, yeah it's a bit of a learning curve... try googling PHP/MySQL interactions. You basically need the database to act as the 'storage' for the posted comments..
You can also do it by writing the comments to a text file on the server, but then you have to know how to pull them back out. So you'd have the php script first open a file on the server (google "PHP fopen", then write the posted comments to the file, then you'd have your comments display page opening the comments file and loading them into an array, then outputting the array into your design. Its the sloppier way to do it, but if you cant do database shit, it would do the trick.
To be honest, you're going to have better luck finding a script and tailoring it to your needs... google "PHP Shoutbox" and the like, you'll end up getting closer to your end result faster, and the fact that it's already written, you can pick up on some of the procedures when you're in there customizing it. for your needs.
I'm almost positive I've used this in the past:
http://www.shoutpro.com/It's worth a look...
- epikore0
thanks man
- ********0
Lemme know when you're good with PHP so I can pay you $20 an hour to do all my work for me. ;)
- epikore0
Try the folks in india, they charge $8 an hour. I'm trying to figure out doing the same message posting in flash.
- hiimerik0
go pay someone.