You are here: Re: How to connect to MySQL « PHP Programming Language « IT news, forums, messages
Re: How to connect to MySQL

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация