The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
help with while
PHP Code:
i'm now getting this error Code:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in K:\Network\xampp\htdocs\forums\includes\db_mysql.php on line 311 'project_rate' as the project_info extracts data from 'projects' |
#2
|
||||
|
||||
erm, you are running num_rows on a normal array (query_first's result is always an array, not a mysql result resource.
so the correcter version is: PHP Code:
|
#3
|
||||
|
||||
thanks xenon
i just tested this in phpmyadmin and it works fine, however in the project_bit template HTML Code:
<table class="tborder" cellpadding="5" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat"> project <a href="index.php?projectid=$projectid" class="projectid">$projectid</a> by confess[username] </td> </tr> <tr> <td valign="top" class="alt1"> $text </td> </tr> <tr> <td class="thead" align="right"> <smallfont><strong>$report $adminoptions $num_rates votes</strong></smallfont> </td> </tr> </table> |
#4
|
||||
|
||||
Because you have $num_rates and not $num_votes in the template?
|
#5
|
||||
|
||||
ahhhhhh, how stupid am i, i'm so so so so so sorry to waste your time
[high]* sabret00the is might ashamed and embarrassed [/high] sorry |
#6
|
||||
|
||||
We've all done it, many a time
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|