私が得る出力
Name Age
ABC 12
PQR 40
XYZ 10
PHP を使用して MySql データベースからデータを取得するためのコード。
//Get records from database
$result = mysql_query("SELECT * FROM people;");
//Add all records to an array
$rows = array();
$count = 0;
while($row = mysql_fetch_array($result))
{
// Here i want to bind one more colomn for count as Row number to array
count = count + 1;
$rows[] = $row;
}
希望の出力..
RowNo Name Age
1 ABC 12
2 PQR 40
3 XYZ 10
でカウント数を送信したいmysql data as one colomn
。誰でも私を案内してもらえますか?