You are here: Re: mysql / php5 configuration « PHP Programming Language « IT news, forums, messages
Re: mysql / php5 configuration

Posted by Dap on 10/18/07 10:02

jcoder pisze:
> actually there's no error msg..it just gave me blank page.
>
> <?php
> mysql_connect("localhost","root","123") or die("cannot connect");
> echo'ok';
> ?>
>
> even the work "ok" is not showing either. im wondering, if my password
> or username, or the host is wrong it should give me the msg "cannot
> connect", but there's nothing. and if i restart apache, no error msgs
> also.
>

try

if (function_exists(mysql_connect)) {
mysql_connect("localhost","root","123") or die("cannot connect");
print('OK');
} else {
print ('I forgot about php_mysql');
}

What does it show ?
also put error_reporting(E_ALL) at top of Your script

D.

 

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

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