[PHP-users 21078]Re: mysql_connect関数が動作していない?

Sumito_Oda oda @ bst.jp
2004年 3月 31日 (水) 18:52:09 JST


織田です。

>if(!$con=mysql_connect("localhost","mysql","passwd"))}

取り合えず、括弧の向きが逆です。
エラーレポートのレベルを強めにして
積極的にレポートを出力させて勉強やデバッグしましょう。
・error_reporting
・display_errors
http://jp2.php.net/manual/ja/ref.errorfunc.php

-- 
Sumito_Oda mailto:oda @ bst.jp


PHP-users メーリングリストの案内