Much thanks for helping me.
In my attempt to seperate the query i tried the following.
Code:
$dataresult = $vbulletin->db->query_read("
SELECT field7
FROM " . TABLE_PREFIX . "thread
ORDER BY field7 DESC LIMIT 5
");
while ($data = $vbulletin->db->fetch_array($dataresult))
{
// process it here
$wow1 = $data[0];
$wow2 = $data[1];
echo "<PRE>";
print_r($data);
echo "</PRE>";
print_r($wow1);
print_r($wow2);
}
$stack = array("orange", "banana", "apple", "raspberry");
$name1 = $stack[0];
$name2 = $stack[1];
print_r($stack);
echo "<br />";
print_r($name1);
print_r($name2);
Ok i have no idea what im doing wrong. I printed the array out to see how its displayed but i do not see the (array #) such as [0], [1]
So im totally lost.