View Full Version : Need help...
SCS_Rocket-Devi
13 Aug 2007, 15:23
I want to select the post count from userid 1 i have tried to use this and its not working :(
SELECT * FROM `user` FROM `posts` WHERE `userid` = 1 LIMIT 1
What am i doing wrong?
Thanks Dan
SELECT posts FROM `user`WHERE `userid`=1 LIMIT 1
SCS_Rocket-Devi
13 Aug 2007, 15:48
Thanks, its getting somewhere but when u put it in as PHP code it shows the value as 0 when it should be 88
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Opserty
13 Aug 2007, 15:50
If your doing it via a plugin or custom vB page you can use:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Otherwise I think its something like this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
SCS_Rocket-Devi
13 Aug 2007, 15:53
im doing it from 3rd party script
Opserty
13 Aug 2007, 15:55
Use the second block of code I posted then, that should work.
SCS_Rocket-Devi
13 Aug 2007, 16:22
yey! thanks it works!
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.