![]() |
Whats wrong with this SQL code?
Code:
$user_f_rep = $vbulletin->db->query_read("SELECT COUNT(reputation.reputationid) AS reps, SUM(reputation.reputation) AS replevel, reputation.userid --------------- Added [DATE]1197838558[/DATE] at [TIME]1197838558[/TIME] --------------- Ok, I changed the codes a bit, got rid of the database error but now im getting a message where the variable is implemented in the template system reading"Recourse id #49" this is the code im now using: Code:
$user_f_rep = $vbulletin->db->query_read(" |
If you are just selecting the first result try this:
PHP Code:
|
Thanks Opserty, Im amazed to see someone actually replied. I created a cleaner code and created a 'while' function while i was waiting for help, and it worked But thanks anyway :)
|
All times are GMT. The time now is 02:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|