Re: PHP and MYSQL
| From: | Stut | Date: | Fri, 22 Jun 2007 14:11:15 +0000 |
| Subject: | Re: PHP and MYSQL | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-28129@lists.php.net to get a copy of this message | ||
Bill Bolte wrote:
Do you have error reporting turned off?And/or display_errors? -Stut -- http://stut.net/ > -----Original Message----- > From: Leandro Martinez [mailto:leandro@extranets.unsam.edu.ar] > Sent: Friday, June 22, 2007 8:23 AM > To: php-windows@lists.php.net > Subject: [PHP-WIN] PHP and MYSQL > > Hello. I just instaled PHP and MySQL on IIS. > Then from any php file I try to conect to the mysql server and nothing > happends. I just get an empty page. All white. No data and no error! > > This is the code > > $link = mysql_connect('localhost', '[user]', '[pass]'); > if (!$link) { > die('Could not connect: ' . mysql_error()); > } > echo 'Connected successfully'; > mysql_close($link); > > > Can anyone help me? > > Thanks >