473,396 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Mysql PHP and WML

Dom
Hi

How easy is it to create a WAP page that can access a Mysql database?
I have read various tutorials but keep getting error messages or parts
of the code when I try to use them in the WAP simulator.

Can anyone point me in the right direction or give me some simple
code?

Thanks.
Jul 20 '05 #1
2 4186
Dom wrote:

How easy is it to create a WAP page that can access a Mysql database?
I have read various tutorials but keep getting error messages or parts
of the code when I try to use them in the WAP simulator.

Can anyone point me in the right direction or give me some simple
code?


Hi Dom,

I think that you're posting your problem in the wrong newsgroup.
This is about XML, XSLT and related stuff and has nothing to do
with mysql, PHP or WML (ok, maybe a little bit WML ;-).

Have a look at this page: http://www.zend.com/zend/tut/wap.php

If it doesn't help try using a search engine of your choice
(e.g. http://www.google.com) and look for the keywords PHP and
WML.

HTH,
Gerald
Jul 20 '05 #2
On 3 Sep 2004 10:23:01 -0700, do*@dom868.co.uk (Dom) wrote:
How easy is it to create a WAP page that can access a Mysql database?
WAP / WML can't access MySQL directly.

What you need is a PHP page (or some other scripting platform). This
can access MySQL by a well-trodden route and it then generates some
content, however you want it. Most examples you see will be for HTML,
but generating WML can be very similar.

You _will_ need to learn to read and write WML manually, with some
level of accuracy. There's no Frontpage or Dreamweaver to help you
here.

WML is an XML dialect and HTML isn't. So while HTML is usually
generated by a bunch of print statements, you might find it useful to
generate WML by using an XML DOM, then writing all of its contents in
one go. Without knowing exactly what you're doing, it's hard to say
which is better for you.

WML and especially WAP are obsolete. Most phone work nowadays is done
with XHTML-MP instead. As a first approximation, WAP/WML is just so
rubbish that you can't do anything useful with it. Anything complex
enough to be interesting needs the extra features of XHTML instead.
WML basically sucks dead bunnies.

Another authoring platform, if you're dealing with Vodafone Live!, is
PartnerML. This is an imtermediate format that the network stack turns
into either WML or XHTML, depending on the type of handset.
I have read various tutorials but keep getting error messages or parts
of the code when I try to use them in the WAP simulator.


Don't debug page generation code with WAP emulators - that's a
_really_ hard way to work. You'll never be sure if your WML is bogus,
or if your PHP is mis-generating it.

Split the problem into two steps, which you'll switch between
regularly. Write WML pages as static files using an editor. Debug
these with the WAP emulator and fix the WML coding glitches.

Write your PHP separately, and store its output as files (you might be
able to view it with IE, connected directly to your server). Debug
this by eyeballing the stored WML in comparison with the hand-authored
WML you've already debugged.

Last time I wrote any PartnerML, the OpenWave emulator we were using
was such rubbish (unreliable and inaccurate) that I wrote an
XSLT-based PartnerML ->HTML translator and used that from with a copy
of IE. An uphill fight, but it was better than Openwave.

--
Smert' spamionam
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: francescomoi | last post by:
Hi. I'm trying to build 'MySQL-python-1.2.0' on my Linux FC2: ---------------------------------- # export PATH=$PATH:/usr/local/mysql/bin/ # export mysqlclient=mysqlclient_r # python setup.py...
4
by: mikey | last post by:
Hi all, I'm having great problems trying to install the latest MySQl RPM package onto my Red Hat Linux OS. There is already MySQL v 3.0 pre-installed with the RH Linux distribution disk but I...
0
by: Yun Guan | last post by:
Hello mysql gurus, I am trying to run perl on mysql database on Red Hat box. I want to install DBI and DBD:mysql using CPAN: perl -MCPAN -e shell cpan>install DBI The above succeeded, but...
0
by: Mike Chirico | last post by:
Interesting Things to Know about MySQL Mike Chirico (mchirico@users.sourceforge.net) Copyright (GPU Free Documentation License) 2004 Last Updated: Mon Jun 7 10:37:28 EDT 2004 The latest...
2
by: Saqib Ali | last post by:
I installed mySQL and have it running.... but I think I made a mistake somewhere along the line...... I believe I did follow the instructions that were provided with the distribution at:...
1
by: Alex Hunsley | last post by:
I am trying to install the DBD::mysql perl module. However, it claims I need mysql.h: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /home/alex/.cpan/Metadata Database was...
0
by: ./Rob & | last post by:
Hi gang: I'm experiencing a problem with MySQL -- I updated MySQL from version 4.1.0 to 4.1.10 and now when I login as root it doesn't show all the databases I should have access to, nor it...
2
by: trihanhcie | last post by:
I m currently working on a Unix server with a fedora 3 as an os My current version of mysql is 3.23.58. I'd like to upgrade the version to 5.0.18. After downloading from MYSQL.COM the package on...
1
by: manish deshpande | last post by:
Hi, When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command: rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown: ...
3
by: menzies | last post by:
Hi, I"m new to this forum, but I have been trying all day to install DBD::mysql onto my Intel MacBook. I've read lots of forums pages and none have gotten me to a successful 'make test' or a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.