mirror of
https://github.com/php/php-src.git
synced 2024-12-05 07:46:06 +08:00
04691a516b
Use table name variable.
12 lines
461 B
PHP
12 lines
461 B
PHP
<?php
|
|
// These vars are used to connect db and create test table.
|
|
// values can be set to meet your environment
|
|
|
|
$conn_str = "host=localhost dbname=test"; // connection string
|
|
$table_name = "php_pgsql_test"; // test table that should be exist
|
|
$num_test_record = 1000; // Number of records to create
|
|
|
|
$table_def = "CREATE TABLE php_pgsql_test (num int, str text, bin bytea);"; // Test table
|
|
$field_name = "num"; // For pg_field_num()
|
|
|
|
?>
|