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
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
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_con
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 im
PROTECTED]]
Sent: Tuesday, September 04, 2001 9:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Newbie ?: why this error?
Not only am I new to PHP, I'm new to programming altogether. I'm trying
to take it step by step, and my first big experiment was the script
below, used to enter info from a f
> 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 http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Not only am I new to PHP, I'm new to programming altogether. I'm trying
to take it step by step, and my first big experiment was the script
below, used to enter info from a form into a mySQL database. I get the
following error message when it runs:
Parse error: parse error, expecting `','' or
7 matches
Mail list logo