我有以下的代碼這在他們行有一定的價值MySQL的結果數組:如何創建
<?php
include_once 'init/init.funcs.php';
$pollid=$_GET['pollid'];
$result = mysql_query('SELECT question FROM questions where survey_id="' . $pollid . '"');
$question = mysql_result($result, 0);
echo $pollid;
echo $question;
?>
它將回音具有survey_id = $ pollid的第一個問題。但是我想編制一系列所有問題,其中survey_id = $ pollid.How我可以這樣做嗎?
嚴重:| mysql_result!的 – h2O
可能重複[如何獲取結果在PHP的MySQL的所有行?](http://stackoverflow.com/questions/10940332/how-to-fetch-all-the-row-of-the-result-在-PHP-MySQL的) – mario