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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
noyman380
Forum Newbie
Posts: 1
Joined: Thu Mar 19, 2009 10:50 pm

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

Post 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!
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

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

Post 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
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

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

Post 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 )
Post Reply