Hi all!
Have a few questions!
I want to refresh the content of this query! I would also like to store the
answer eg. 5 times in an base.
I would also like to displa the right answer after you have submitted your
answer!
Here's a code the example from the start php:
<?php header("content-type: text/vnd.wap.wml");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header ("Content: no.cache");
echo"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
echo"<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
?>
<wml>
<card id="menu" title="nrk"
ontimer="http://www.arcticpenguin.org/start.php#runde">
<timer value="2"/>
<do type="avbryt" label="Avbryt"><go
href="http://www.arcticpenguin.org/"/></do>
<p>
---loading---
</p>
</card>
<card id="runde">
<p>
<?php
require("util.php3");
$sql=new MySQL_class;
$sql->Create ("fotball");
$sql->Query("select quest, right, wrong1, wrong2 from game order by rand()
limit 1;");
for ($i = 0; $i < $sql->rows; $i++)
{
$sql->Fetch($i);
$quest=$sql->data[0];
$alt1=$sql->data[1];
$alt2=$sql->data[2];
$rett=$sql->data[3];
echo("$quest\n\n");
echo("<br/><a
href=\"http://www.arcticpenguin.org/start.php#menu\">-A-\n$alt1</a>\n\n");
echo("<br/><a
href=\"http://www.arcticpenguin.org/start.php#menu\">-B-\n$alt2</a>\n\n");
echo("<br/><a
href=\"http://www.arcticpenguin.org/start.php#menu\">-C-\n$rett</a>\n\n");
}
?>
</p>
</card>
</wml>
Thanks
SJ
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]