> I cannot seem to access elements inside of the array $things in the code > below. All of the errors say "Undefined offset: 7 in > /Library/WebServer/Documents/lis/check.php on line 26" I don't see > why...
print_r is your bestest buddy. > $results = mysql_query($q); > if ($results) { > while ($list=mysql_fetch_assoc($results)) { > $things[]=$list; > } > } > //$things[7] is a MySQL timestamp column named "last_login" $things[7] is actually an associative array containing the seventh result row from your query. If you check out the results of print_r($things), you'd see the array structure immediately. --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php