I have a mysql database which allocate:
iid, name, description, url, namecategory, idcategory, nametopic, idtopic
How can i know the number of entries that has categoryid=1 and topicid=1
?
I've tried
$result = mysql_query("SELECT COUNT(id)
FROM videos
WHERE idcategory = 1
AND idtopic = 1")
...but it hasn't worked!