PDA

View Full Version : prompt message


xpNet
04-11-2004, 03:10 AM
hi anybody..
how to make alert message?
eg:
if (false) {
<- alert message ->
} else {
<- something ->
}
what coding to prompt alert message to user?
thankx

oracleguy
04-11-2004, 07:35 AM
This doesn't sound like a mysql question, more like a javascript question.

Anyways do that in JS:


if(false) {
alert("Error!");
}
else
{
...
}

Josh_
04-11-2004, 04:44 PM
Or you could make php check it and then echo the alert


if(!isset($variable)){
//echo the alert here
exit;
}
else {
//echo 'OK'
}