anyone try this?
<?php
$dbhost = "universe";
$dbusername = "diety";
$dbpass = "me";
$dbname = "world_religion";
$link = mysql_connect($dbhost, $dbusername, $dbpass) or die ("There is no spoon");
mysql_select_db ($dbname) or die ("no religions found");
$sql = "SELECT * FROM `religions` WHERE `sex_acceptable` = '1'";
$religion_1 = mysql_query ($sql,$link) or die("died");
$religion =mysql_fetch_array($religion_1);
$result = count($religion);
echo $result;
?>
I keep getting "0" am I doing something wrong?
(and no programmers trying to bitch about which versions of php would return a NULL array and which would return an EMPTY array)
D