I get a parse error when I run the following? My host doesn't seem to think it is a problem with the code.
<?php
$link = mysql_connect ("localhost", "wanderin") {
or die ("Could not connect");
}
if (mysql_create_db ("my_db")) {
print ("Database created successfully
");
} else {
printf ("Error creating database: %s
", mysql_error ());
}
?>
I get:
Parse error: parse error in /usr/local/etc/httpd/htdocs/psb/test.php on line
3
A parse error seems strange. It makes me wonder if there is a PHP module
missing.