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
Script Help Please
Collapse
X
-
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">
<p align="center">
[+]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.
</p></card><card id="16" title="16">
<p align="center">
</p></card></wml>
but when i save that page it says unexpected string and something like that
Comment
-
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

Comment
-
<?
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
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

Comment
Comment