That's good to know. Thanks!
Vicki
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Cc Zona) wrote:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Vicki) wrote:
$db = mysql_connect (hostname, user, password);
if (!$db)
{
echo Error: Could not connect to database. Please
Cc Zona wrote:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Vicki) wrote:
$db = mysql_connect (hostname, user, password);
if (!$db)
{
echo Error: Could not connect to database. Please try again later.;
exit;
}
BTW, you can reduce that block down to a single line:
$db =
I've been stuck on this all afternoon. The opening PHP tag is
what's on line 8.
You may have disabled the short PHP tags - namely, ? ?.
These tags conflict with XML specs.
Try ?php instead of ?
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!
Hi Vicki,
try this:
?
if (!$SampFirstName || !$SampLastName || !$SampEmail)
{
echo You have not entered all the required information. br; #-- you
need a semi colon here and
echo Please go back and try again.; #-- another echo here.
exit;
}
you could also do this:
?
if (!$SampFirstName ||
Well this is progress! My sloppy semicolons seem to have been the
problem. The error message has now moved down to line 14, which in
Dreamweaver 4 is the closing } of that code block.
Since the line numbers in the error messages don't seem to be exact, the
problem is probably in the lines
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Vicki) wrote:
$db = mysql_connect (hostname, user, password);
if (!$db)
{
echo Error: Could not connect to database. Please try again later.;
exit;
}
BTW, you can reduce that block down to a single line:
$db = mysql_connect (hostname,
6 matches
Mail list logo