Thread: database + WAP

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    293
    Rep Power
    16

    database + WAP


    hi, ive read the tutorials on devshed, and can use basic WML / WMLscript etc,

    (i) can you connect to a mysql database directly using WMLscript
    if so, how? and are therea ny predefined functions / classes.

    (ii) can you do mysql via PHP, and if so how? has anyone got a tutorial on getting form vars from WML into a mysql databse?

    thanks in advance.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Paris, France
    Posts
    375
    Rep Power
    12
    (i) WML Script is a client side language, MySql is server side database so it could communicate. You may use a server side language (jsp, php, perl ...)
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    293
    Rep Power
    16
    WML Script is a client side language, MySql is server side database so it could communicate
    ok how?

    and how can i pass info to php scripts ?
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0
    Hi Jenkz,

    The following is a good starters PHP/MySql tutorial. It will show you how to start a simple database and pull the info out via PHP into client side HTML.

    http://hotwired.lycos.com/webmonkey/...tutorial4.html

    To extend this a little further and make it WML compatible, you just need to set the WML headers in the PHP page.

    Once you get this working, getting data from WML into your database, doing queries on your database based on a selection in WML is easy.

    Let me know if you have any questions on this.

    -m_stan

IMN logo majestic logo threadwatch logo seochat tools logo