![]() |
Help with MySQL / PHP problem
Hello,
I have come across a problem that I believe that I need to use a for loop but I don't know how to use it here. Here is the code: PHP Code:
PHP Code:
Thanks! |
Can you do a var_dump of the results?
If the var_dump only shows 1 result, then it is a problem within your query statement or you don't have your data set right in your database. |
Yea, no. The problem is the fetch_array is suppose to fetch more then 1 row. But It doesn't since there is no loop for it
|
So then what's your question? You seem to already know the answer
|
Yea but I don't know how to do it
|
Ah! I understand what you're asking..
PHP Code:
|
: squint :
Why you have two queries there? Code:
SELECT ss.status, ss.id, ss.site |
I don't think he wants a RIGHT JOIN there.
I think just an INNER JOIN. If you look at his while loop on the votingsite records, the only thing he does with it is get and ID to be used in the inside while loop. So he doesn't really care about any values from the votingsite table. |
| All times are GMT +1. The time now is 08:25 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.