|
Posted by Jerry Stuckle on 10/16/39 11:30
Lennart Björk wrote:
> Botan Guner,
>
> I have a similar problem and I use exactly your code
>
> >
> //copy paste from php manual
> $link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
> if (!$link) {
> die('Not connected : ' . mysql_error());
> }
> <
>
> and I get
> Parse error: parse error, unexpected T_IF in
> my program (or your program or the manual's program)
> on line
> 'if (!$link) {'
>
> Something must be wrong in my setup. Can you give me a hint?
>
>
> Lennart
Lennart,
I don't see an error there. I suspect it's someplace earlier in your
code. Probably mismatched single quotes.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|