(See comlpete code at the end of post). Hi guys, I use the DB class to retrieve data from MySQL db and place it into the array. I want to run a different query dependnig if something is already in the DB or not. However, even if the $checkfeeds returns nothing checked in myphpadmin by just running
SELECT feed_id FROM news_feeds WHERE url = 'xxx'
the code inside
if (count($checkfeeds != 0))
{
}
still executes. What gives? Helpppppppp!Thank you.
Full Code:
$checkfeeds =& $db->getAll("SELECT feed_id
FROM news_feeds
WHERE url = '$custom_feed5'",
array(), DB_FETCHMODE_ASSOC);
if (count($checkfeeds != 0))
{
}