PHP, WML and Mysql

D

Dom

I am trying to convert this file so that I can use it with a WAP
Emulator. Can anyone help me to convert it. I have tried what I
thought was correct but keep getting error messages.

<html>



<body>



<?php



$db = mysql_connect("localhost", "root");



mysql_select_db("mydb",$db);



$result = mysql_query("SELECT * FROM employees",$db);



printf("First Name: %s<br>\n", mysql_result($result,0,"first"));



printf("Last Name: %s<br>\n", mysql_result($result,0,"last"));



printf("Address: %s<br>\n", mysql_result($result,0,"address"));



printf("Position: %s<br>\n", mysql_result($result,0,"position"));



?>



</body>



</html>



Also can anyone recommend a good WAP Emulator to use with Mysql and
PHP.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top