A
Anonymous
Guest
I have following code:
It will not produce the alert() box.
Found this on the internet as an example in several places but can't make it work.
Help to get it working appreciated.
R
Code:
$msg=dbCheck($database); // check if db exists
if(substr($msg, 0,2)!="OK") {
[b]
echo "<script type='text/javascript'>alert(".$msg.")</script>";[/b]
exit();
}
It will not produce the alert() box.
Found this on the internet as an example in several places but can't make it work.
Help to get it working appreciated.
R