Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

dbarraynum

Returns a numerical array that corresponds to the fetched row and moves the internal data pointer ahead.

dbarraynum

Quote

dbarraynum ( resource $query )


Parameters
query
The result resource that is being evaluated. This result comes from a call to dbquery().

Return Values
Returns an numerical array of strings that corresponds to the fetched row, or FALSE if there are no more rows.

dbarraynum() fetches one row of data from the result associated with the specified result identifier.
The row is returned as an array.
Each result column is stored in an array offset, starting at offset 0.

Example
Code

<?php
$result = dbquery("SELECT id, email FROM people WHERE id='42'");
if (dbrows($result)) {
 $data = dbarraynum($result);
 
 echo $data[0]; // 42
 echo $data[1]; // the email value
} else {
 echo "No data in table.";
}
?>