I've been RTFM and Searched for over an hour, I think I'm close to an answer here but can't seem to get it. I'm connecting to my db, and this much works:
<?
mysql_select_db('MyDB');
$user_query = mysql_query("select Type from tbl_flowers");
echo mysql_num_rows($user_query);
However, I don't just want to count the rows (it's just that's all I could get to work :p) - I want to display the results (in this case, Rose, Tulip, Chrysanthemum, etc.) Here's where it breaks down - are either of these close to correct? Thanks!
Chris
echo $user_query; <----which returns "Resource id #2" for some reason
OR
mysql_fetch_array($user_query); <-------
echo $user_query["Type"]; <---- these two lines display nothing
?>
P.S.- Hi Tekky, I know you're going to see this. 😃