wap questionare!
| From: | news.php.net | Date: | Wed, 08 Aug 2001 06:53:48 +0000 |
| Subject: | wap questionare! | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-62530@lists.php.net to get a copy of this message | ||
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