i want to make a multi-question poll in steps. i want the questions to be displayed one after the other in sequence and the questions should be pulled from the DB.
i başarıyla DB'den bir soru getiriliyor duyuyorum. kullanıcı bir soru için bir sonraki soruya kullanıcıyı almalıdır Gönder tıkladığında ama o iş yapmak istiyorum yoludur.
$query = "SELECT qid, qtitle FROM questions where qid = $qid";
$result = mysql_query($query) or die("ERROR: $query.".mysql_error());
// if records are present
if (mysql_num_rows($result) > 0) {
$row = mysql_fetch_object($result);
// get question ID and title
$qid = $row->qid;
echo '<div id=ques>';
echo '<h2>'.$row->qtitle .'</h2>';
echo '</div>';
Birisi bu tür sorgu için döngü ve yapıları ile lütfen bana yardımcı olabilir?
i sorular için ayrı sayfaları yapmak istemiyorum.