[PHP-users 28400] Re: insert について

Asakichi.Yoshikawa a-yoshikawa @ caddata.jp
2006年 2月 13日 (月) 23:12:21 JST


吉川@大阪です。

Katumi Miyao wrote:
> 初めまして、宮尾です
省略
> 	$res1 = pg_query($dbcon,$insert);
> 	echo"test1 $dbcon <BR>";
> 	echo"test2 $insert <BR>";
> 	echo"test3 $res1 <BR>";
> 	if (! $res1){
> 		trigger_error("query fail: ". $insert);
> 		echo "Can not connect the bbs of wing-server";
> 		exit;
> 	}
> }
> 結果表示
> test1 Resource id #2 
> test2 insert into bbs (no, name, mail, url, title, message, data, time)
> values (3, 'name', 'mail', 'url', 'title', 'test', '2006/02/13', '03時34分34秒') 
> test3 
> Can not connect the bbs of wing-server
単純に pg_query の実行結果を
pg_result_status
pg_last_error
pg_result_error
pg_last_notice
などで調べてみてみるというのは?



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