Creating WAP Services by Luca Passani Listing One

Pick up a song Today's programs news

Artist or song title: Search

Listing Two

This text is supposed to explain what happens in this deck. It should tell users that they can browse the news, see today's programs on the radio, and even pick up a song to be sent later on.
Associating a help deck to each deck that implements a certain function is an excellent way to provide context-sensitive help.
Generally speaking having a context-sensitive help system is a good idea in the case of WAP services. Screens real estate is limited and the text used to guide users can be cryptic.
Don't forget a back button

Listing Three \n"; echo ''; ?> 2) { //good start. // We have something to search for mysql_connect("localhost:3306", "root", ""); $query = "SELECT * FROM songs " . "WHERE title LIKE '%$searchkey%' OR artist LIKE '$searchkey%'"; $result = mysql_db_query("wap", $query); if ($result && mysql_numrows($result) > 0) { $ok = true; } } if ($ok) { //if there are multiple hits, user should choose one if (mysql_numrows($result) > 1) { ?>

Pick up song: \n"); $r = mysql_fetch_array($result); //one way to do it is with setvar (as follows)--but consider // the side effects //echo("\n"); //echo("\n"); //echo("\n"); //echo("\n"); //echo("\n"); ?>

you chose:
\n"); } ?> your message: Next 1) { echo("\n"); } else { echo("\n"); } ?>

No match. Try with a different search key: Search

Listing Four \n"; echo ''; ?>

You picked:
by
Your message:

"); $result = mysql_db_query("wap", $query); ?> Thank you for listening to WAP Radio 105 FM.
Go to front page

4