![]() |
|
#1
|
|||
|
|||
need helpi save this file as .wml, it run successfully in SDK Control Panel (Nokia Toolkit) and Nokia Mobile Browser
<?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="card1" title="firstpage" newcontext="true"> <p align="center"> Text 1: <input name="text1" size="10" /> <br/> Text 2: <input name="text2" size="10" /> <br/> <anchor> Submit <go href="submit.wml" method="post"> <postfield name="text1" value="$(text1)"/> <postfield name="text2" value="$(text2)"/> </go> </anchor> </p> </card> </wml> then i tried to connect to Mysql database, i key in c:/phpweb/test.wml in the SDK control panel, nothing come out, what's the problem? can anyone teach me? thank you. <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="card1" title="Example 1"> <p> <?php $wap = mysql_pconnect("localhost", "root",""); $db = mysql_select_db("wap"); $query = "select name, address from test"; $result = @mysql_query($query); print "<b>Results:</b> <br/>"; if (mysql_num_rows($result) > 0) : while ($row = mysql_fetch_array($result)) : print "$row[name] $row[address]<br/>"; endwhile; else: print "No current results."; endif; ?> </p> </card> </wml> |
Recent GIDBlog
Developing GUIs with wxPython (Part 4) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The