Below are two methods commonly used in most php codes for fetch mysql data .
mysql_fetch_array()mysql_fetch_assoc()
mysql_fetch_array() vs mysql_fetch_assoc()
mysql_fetch_array(): Returns an array that corresponds to the fetched row and moves the internal data pointer ahead. for better documentation click here! to learn more mysql_fetch_assoc(): is equivalent to calling mysql_fetch_array() with MYSQL_ASSOC for the optional second parameter. It only returns an associative array.