![]() |
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' |
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:
|
thanks xenon :D
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"> |
Because you have $num_rates and not $num_votes in the template?
|
ahhhhhh, how stupid am i, i'm so so so so so sorry to waste your time :o
[high]* sabret00the is might ashamed and embarrassed [/high] sorry :o |
We've all done it, many a time ;)
|
All times are GMT. The time now is 12:22 AM. |
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:
|