【文章內(nèi)容簡介】
rsion of mysql_fetch_row(). In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field names as keys. 13 mysql_fetch_array() $myrow = mysql_fetch_array($result) ? $myrow[0]? 孫家小館 ? $myrow[‘ name’ ]? 孫家小館 ? $myrow[1]? 青年一路 19號 ? $myrow[‘ address’ ]? 青年一路 19號 14 新增美食資料 () //判斷是否有 submit資料 if ($_POST[submit]) { //post上來的資料 $name = $_POST[name]。 $address = $_POST[address]。 $special = $_POST[special]。 $db = mysql_connect(localhost, mtUser, password)。 mysql_select_db(Travel,$db)。 //新增資料到資料庫 $sql = INSERT INTO Food (name, address, special) VA