你好我取出由MySQL數據庫中的數據,我想獲得的列的索引表中的我怎樣才能從MySQL查詢與PHP的索引值?
<?php
//connects to database
$con = mysql_connect("locahost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("appulentoweb", $con);
//retrieve data from database
$result = mysql_query("SELECT * FROM questions");
?>
我想獲得在表中的列的索引,然後我將顯示在屏幕上的數據。
在表我有2列i'e諾和titile我想顯示在輸出頁面標題
在此先感謝...
您可以通過索引的意思?請更清楚一點。你想要結果索引模式? – 2012-07-18 06:44:13