ducas2rkのプロフィール
- ベストアンサー数
- 4
- ベストアンサー率
- 50%
- お礼率
- 0%
- 登録日2006/02/06
- PEARのDBが動かない・・orz
PEARのDBを使ってMYSQLに接続しようとしているのですが、動作しません。 試しに↓のようなコードを書いたところ 画面「a」は出たのですが「b」が出ませんでした。 --コード----------------------------------------- require_once("DB.php"); $dsn = "mysql://user:password@localhost/db_name; echo("a"); $db = DB::connect($dsn , true); echo("b"); -------------------------------------------------- なにかエラーがでれば手がかりになるのですが、 エラーも何もでません。 MDB2で試しても結果は同じでした。 解決方法を教えて頂けないでしょうか? ちなみにPHPのversionは5.1.2 MYSQLは4.1.7になります。
- 締切済み
- usb_memory
- PHP
- 回答数1
- smartyのディレクトリ指定について
お世話になります。 現在下記のような構成になってます d:\www web公開フォルダ d:\smarty テンプレート等のフォルダ smartyフォルダには templates_c templates cache configs があります。 wwwに置いてあるphpに $smarty->cache_dir = "D:/smarty/templates_c"; $Smarty->display("file:d:/www/templates/list.tpl"); と指定しましたがPHPのエラーログに Smarty error: the $compile_dir 'templates_c' does not exist, or is not a directory. と表示されてしまいます。 よろしくお願いします。
- PEARのHTMLQuickFormにてselectタグを作る時のselected
HTMLQuickFormを利用してフォームの部品を 作っています。 selectの選択ボックスを $ary_sel[1]="1"; $ary_sel[2]="2"; addElement('select', 'selectName', '選択',$ary_sel); という感じで作成したのですが selectedをどうやって設定するべきなのかが わかりません。 良いやり方があれば宜しくお願いいたします。
- XOOPSのインストールエラーについて
XOOPSをインストールしましたが、 トップ画面の下部に、以下の様なエラーが 発生します。 何故でしょうか? Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 547 Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 547 Notice [PHP]: Only variables should be assigned by reference in file class/database/mysqldatabase.php line 236 Notice [PHP]: Only variables should be assigned by reference in file class/database/mysqldatabase.php line 236 Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 547 Notice [PHP]: Only variables should be assigned by reference in file class/database/mysqldatabase.php line 236
- ベストアンサー
- mikichan-e
- PHP
- 回答数3
- XOOPSのインストールエラーについて
XOOPSをインストールしましたが、 トップ画面の下部に、以下の様なエラーが 発生します。 何故でしょうか? Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 547 Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 547 Notice [PHP]: Only variables should be assigned by reference in file class/database/mysqldatabase.php line 236 Notice [PHP]: Only variables should be assigned by reference in file class/database/mysqldatabase.php line 236 Notice [PHP]: Only variable references should be returned by reference in file include/functions.php line 547 Notice [PHP]: Only variables should be assigned by reference in file class/database/mysqldatabase.php line 236
- ベストアンサー
- mikichan-e
- PHP
- 回答数3