RE: [PHP] MySQL and Array's REALLY simple question but I'm not GETTING it .. Ugh..

2002-09-06 Thread Steve Gaas
OK, this works.. This is wonderful.. But I don't get it.. I assigned two separate variables to that array function.. I don't understand why this works now, but thanks a lot for the help. I hope I don't inadvertently run into this again... -steve $sql2 = mysql_connect(localhost, eweb, dbfun)

Re: [PHP] MySQL and Array's REALLY simple question but I'm not GETTING it .. Ugh..

2002-09-06 Thread Brad Bonkoski
It doesn't matter what variables you assign to fetch the data, one of the effects of mysql_fetch_array() is to increment the database result variable. It does this without you even knowing it. check out the mysql_data_seek() function to see how you can make the adjustments yourself. i.e.

Re: [PHP] MySQL and Array's REALLY simple question but I'm not GETTING it.. Ugh..

2002-09-06 Thread Chulkee Sung
$sql2_results = mysql_fetch_array($top_level); I guess this must be in a loop otherwise your $sq12_results keep getting overwitten; thus, the last record will be shown at the end. $query_sql2_rows = mysql_num_rows($top_level); echo $query_sql2_rows; // echo's 2 rows print table