Page 1 of 1

How to leave message--similar to the one on facebook

Posted: Thu Mar 19, 2009 11:29 pm
by noyman380
I want to create a simple program that will let users leave messages or comments similar to the ones you can see on youtube or facebook. I tried using a while statement, and the a for loop that will increment the rows in the table but it doesn't work. Any help will be greatly apprecitated. Thanks!

Re: How to leave message--similar to the one on facebook

Posted: Fri Mar 20, 2009 12:59 am
by jaoudestudios
Sure, on line 32 there is a mistake!

Sorry for the sarcasm, but its impossible to help if you do not post any code. No need to post all of it, just the part you want help with. :P

Re: How to leave message--similar to the one on facebook

Posted: Fri Mar 20, 2009 2:20 am
by php_east
noyman380 wrote:I tried using a while statement, and the a for loop that will increment the rows in the table but it doesn't work. Any help will be greatly apprecitated. Thanks!
you need a db table with an ID of type INT NOT NULL AUTO INCREMENT, and then you insert
comments into that table with id=0, the db will auto increment the id value everytime, when given 0.

( i tuned psychic PHP assitant an hour ago )