Mysql fetch row

Ceviz Viki, özgür ansiklopedi

Git ve: kullan, ara
mysql_fetch_row

Sorgudan dönen sonuç tablosundan dizi değişkeni alır.

Kullanımı;

array mysql_fetch_row ( resource $result )

Örnek:

<?php
$result = mysql_query("SELECT id,email FROM people WHERE id = '42'");
if (!$result) {
echo 'Could not run query: ' . mysql_error();
exit;
}
$row = mysql_fetch_row($result);
 
echo $row[0]; // 42
echo $row[1]; // the email value
?>