View Single Post
Old 10-21-2003, 07:58 PM  
hibbidiji
Confirmed User
 
Join Date: Sep 2002
Location: Las Vegas
Posts: 208
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
__________________
---------------
hibbidiji is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote