Simple phone list search for your WAP device. Uses PHP and MySQL. Also lets you dial out to your entries using wtai://wp/mc if your phone supports it. No WMLscript.
// Phone List Search version 1
//
// Peter Garner (peterg@mildewhall.fsnet.co.uk)
// Uses PHP and MySQL.
// This works fine on my Mitsubishi Trium. YMMV.
//
// I developed this on the Linux version of the
// deckit emulator from www.pyweb.com.
//
// This is the first deck that prompts you for
// a last name (or part of a name) - d2a.wml.
// You can call it anything you like, but a short
// URL is easy on a phone keypad..
// Once you have entered your search string, this deck is
// then accessed (d2b.wml). It uses a simple MySQL database
// called "Phonelist" and the table is called "mysite". If
// your phone supports it, you can use the WTAI to place a
// call to your "result" once you have hung up. Please note
// that this script doesn't do any checking for length of
// output. If it's over the limit you will get a 'malformed
// http' message or somthing similar.
joakim Stenebo wrote :1004
Really nice!!! tobad im i suck at SQL im getting error mesages... prolly because i havent set up my database correctly... hav only coded .wml before
im getting some wierd error message pointing to
$nr = mysql_num_rows($result);
someone have a clue.... i dont?
joakim Stenebo wrote :1005
hehe ! ok now after 1 hour or so that problem is solved ...
but now i have another
seems like whatever i input the code always do:
}
else
{
echo "Please select a name (or part thereof)";
}
@mysql_close($DBcon);
}
doesnt seem like the $Lname is working correctly or something!