Adding two coulmns
I'm trying to get the total post of a user in my forum but my code doesn't work.
Yes you need to add a WHERE condition, otherwise you will get all the results in that table.
...WHERE author_id = 'x'
how would i do that?
just what Jaoude said...
...FROM forum_posts WHERE author_id = '$Author_id'
we are assuming forum_posts has the following fields
post_id //primary key
thread_id // foreign key linked to a table holding the thread title
author_id // foreign key linked to a table w/ author/usernames
post // body of that post.
|All times are GMT. The time now is 05:22 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0