Script Help Please
Started on the old forum in May 2007 · view the original in the archive · old links redirect here
hello php programmers can you please tell me how to embed php on wml and xhtml pages.i thaught i should just save my page as .php and everything would be fine but that only works for normal html only
hmm, how have you put your script?..
be concret.what you wont to do give a cod just like exemple...
ok bro.i dont know much about script but i just save my page as for example index.php and i write
<?xml version='1.0' encoding='utf-8'?><!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML 1.1//EN' 'http://www.wapforum.org/DTD/wml_1.1.xml'><wml> <card id="c1" title="Hugo5 © 2007">[+]hugo5.r8.org[+]
Coming Soon...
Site has been closed temporarily.
But we will be back.!
And when we do you can expect much more as we will be moving to our own server.
</card><card id="16" title="16">
</card></wml> but when i save that page it says unexpected string and something like that
Sory MAte i dont see that example fin now you have a php page bro dont but ther you dont have the cod of PHP
just beagin tha index so
<?php header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo("<?xml version=\"1.0\"?>");echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
the Caracter of Begin <?php and end ?> the
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"; echo "<html xmlns="http://www.w3.org/1999/xhtml">"; ?>
<html>head> <meta http-equiv="Content-Language" content="en-us">
<style> A:hover{color: #007751; text-decoration: underline;} </style> <title> <? include '/home/adamb10/public_html/UltraBlog/Sources/mysqlconnect.php'; $result = mysql_query('SELECT title FROM Userdata') or die("Error: ".mysql_error()); while ($row = mysql_fetch_assoc($result)) { echo $row['title']; } ?> </table> </body> </html>i hope you anderstend something from this cod.i cant post big cod