|
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]
|