Quote:
Originally Posted by nerbert
I can't find that line of code but I think your problem is that the query returns a table , which is not quite the same thing as an array, so you have to run through the table and add values to your array. Perhaps older versions of php allowed you to fudge things a little and pretend the table is an an array but we have to be better coders in this brave new world of php 5x.
So generally you would want to do something like this:
Code:
$php_array = array();
while($results = $vbulletin->db->fetch_array( $query_result ))
{
// add some query value to the array ....
$php_array[] = $results[something];
}
|
Ok thanks for the info. I'll have to see if I can figure out how to apply that to this.
EDIT: just a bit of more info...If I uninstall the hack and reinstall it fresh and then create a new form it works fine until I add questions to the form. So it must have something to do with the questions being added. Maybe its possible to put those variables into an array?