al3bed
03-12-2009, 11:22 PM
hello,
I think this can be done only by query but if there is another way please tell me!
I tried this:
$getposterposts = $vbulletin->db->query_read(" SELECT posts FROM " . TABLE_PREFIX . "user
LEFT JOIN " . TABLE_PREFIX . "thread ON (user.userid = thread.postuserid)");
$getposts = $db->fetch_array($getposterposts)
$getposts[posts] = vb_number_format($getposts[posts]);
if ($getposts[posts] >= $minmum_posts){
/*statments*/}
but I get an error
help please :)
I think this can be done only by query but if there is another way please tell me!
I tried this:
$getposterposts = $vbulletin->db->query_read(" SELECT posts FROM " . TABLE_PREFIX . "user
LEFT JOIN " . TABLE_PREFIX . "thread ON (user.userid = thread.postuserid)");
$getposts = $db->fetch_array($getposterposts)
$getposts[posts] = vb_number_format($getposts[posts]);
if ($getposts[posts] >= $minmum_posts){
/*statments*/}
but I get an error
help please :)