2001-12-17 00:16:48 +00:00
|
|
|
<?php
|
|
|
|
// These vars are used to connect db and create test table.
|
|
|
|
// values can be set to meet your environment
|
|
|
|
|
2001-12-17 02:09:07 +00:00
|
|
|
$conn_str = "host=localhost dbname=test"; // connection string
|
2001-12-17 00:16:48 +00:00
|
|
|
$table_name = "php_pgsql_test"; // test table that should be exist
|
|
|
|
$num_test_record = 1000; // Number of records to create
|
|
|
|
|
2002-04-05 06:06:21 +00:00
|
|
|
$table_def = "CREATE TABLE php_pgsql_test (num int, str text, bin bytea);"; // Test table
|
2001-12-17 00:16:48 +00:00
|
|
|
$field_name = "num"; // For pg_field_num()
|
|
|
|
|
|
|
|
?>
|