mysql_fetch_row()

It returns a row from a recordset as a numeric array

Example

<?php
mysql_connect(“localhost”, “root”, “password”) or die(mysql_error());
mysql_select_db(“database_name”);
echo “<pre>”;
$userQry = mysql_query(“SELECT * FROM users”);
while($userInfo = mysql_fetch_row($userQry)){
print_r($userInfo);
}
?>

Output

Array
(
[0] => 1
[1] => PHP
)
Array
(
[0] => 2
[1] => JS
)
Array
(
[0] => 3
[1] => HTML
)
Array
(
[0] => 4
[1] => AS
)