Ok, having one of my brianfarts where something incredibly simple is messing with my mind because I have been coding for way too long...
I'm running the following...
PHP Code:
$sql = $vbulletin->db->query_read("
SELECT *
FROM " . TABLE_PREFIX . "subscriptionlog
WHERE userid = 1
AND subscriptionid IN (1,3)
AND status = 1
");
echo '<pre>';
while ($var = $vbulletin->db->fetch_array($sql))
{
var_dump($var);
}
echo '</pre>';
Would someone please shoot me?
Thank you.
--------------- Added [DATE]1204068961[/DATE] at [TIME]1204068961[/TIME] ---------------
Nevermind... there was nothing wrong with the query... i go to sleep now. I was uploading test script to wrong website... doh!
.