PHP, WML and Mysql

Discussion in 'XML' started by Dom, Sep 3, 2004.

  1. Dom

    Dom Guest

    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.
     
    Dom, Sep 3, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dom

    Mysql PHP and WML

    Dom, Sep 3, 2004, in forum: XML
    Replies:
    2
    Views:
    2,407
    Andy Dingley
    Sep 4, 2004
  2. Rajive Narain
    Replies:
    0
    Views:
    1,897
    Rajive Narain
    Sep 18, 2009
  3. neha shena
    Replies:
    1
    Views:
    264
    Dennis Lee Bieber
    Oct 29, 2010
  4. Sara T.

    WML and color

    Sara T., Apr 12, 2004, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    124
    Sara T.
    Apr 12, 2004
  5. Sara T.

    WML and color display

    Sara T., Apr 12, 2004, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    131
    Sara T.
    Apr 12, 2004
Loading...

Share This Page