Simple PHP Question
Out of context: Reply #27
- Started
- Last post
- 31 Responses
- ********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...