> $fooVar = mysql_fetch_assoc($result)["barColumn"]; No bug here...mysql_fetch_assoc($result) is a function that takes a result set as an argument and returns only one row as an associated array...that is why you need to do
> $record = mysql_fetch_assoc($result); > $fooVar = $record["barColumn"]; That is logic when it comes from the database...database results are returned as rows with various column(s). This allows you to go through each row and pull out all the columns for that row. HTH, BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php