PHP » GoLang |
login |
register |
about
|
GoLang mysql_fetch_array
request it (443)
GoLang replacement for PHP's mysql_fetch_array
[edit | history]
mysql_fetch_array(PHP 4, PHP 5) mysql_fetch_array — Fetch a result row as an associative array, a numeric array, or both Warning
This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include: Description
array mysql_fetch_array
( resource
$result
[, int $result_type = MYSQL_BOTH
] )Returns an array that corresponds to the fetched row and moves the internal data pointer ahead. Parameters
Return Values
Returns an array of strings that corresponds to the fetched row, or If two or more columns of the result have the same field names, the last column will take precedence. To access the other column(s) of the same name, you must use the numeric index of the column or make an alias for the column. For aliased columns, you cannot access the contents with the original column name. Examples
Example #1 Query with aliased duplicate field names SELECT table1.field AS foo, table2.field AS bar FROM table1, table2
Example #2 mysql_fetch_array() with
<?php
Example #3 mysql_fetch_array() with
<?php
Example #4 mysql_fetch_array() with
<?php Notes
See Also
|
more
Recently updated
more
Most requested
|