Lines Matching refs:result
14 $result = pg_query($db, "SELECT * FROM ".$table_name.";");
15 if (!($rows = pg_num_rows($result)))
21 pg_fetch_array($result, $i, PGSQL_NUM);
25 pg_fetch_object($result);
29 pg_fetch_row($result, $i);
33 pg_fetch_result($result, $i, 0);
37 pg_fetch_result($result, 0, -1);
42 pg_fetch_result($result, 0, 3);
47 pg_fetch_result($result, 0, "unknown");
52 pg_fetch_all_columns($result, -1);
57 pg_fetch_all_columns($result, 3);
62 pg_result_error($result);
64 pg_result_error_field($result, PGSQL_DIAG_SEVERITY);
65 pg_result_error_field($result, PGSQL_DIAG_SQLSTATE);
66 pg_result_error_field($result, PGSQL_DIAG_MESSAGE_PRIMARY);
67 pg_result_error_field($result, PGSQL_DIAG_MESSAGE_DETAIL);
68 pg_result_error_field($result, PGSQL_DIAG_MESSAGE_HINT);
69 pg_result_error_field($result, PGSQL_DIAG_STATEMENT_POSITION);
72 pg_result_error_field($result, PGSQL_DIAG_INTERNAL_POSITION);
76 pg_result_error_field($result, PGSQL_DIAG_INTERNAL_QUERY);
78 pg_result_error_field($result, PGSQL_DIAG_CONTEXT);
79 pg_result_error_field($result, PGSQL_DIAG_SOURCE_FILE);
80 pg_result_error_field($result, PGSQL_DIAG_SOURCE_LINE);
81 pg_result_error_field($result, PGSQL_DIAG_SOURCE_FUNCTION);
85 pg_field_name($result, 0);
86 pg_field_num($result, $field_name);
87 pg_field_size($result, 0);
88 pg_field_type($result, 0);
89 pg_field_prtlen($result, 0);
90 pg_field_is_null($result, 0);
93 pg_field_is_null($result, -1);
98 pg_field_is_null($result, 3);
103 pg_field_is_null($result, "unknown");
108 pg_field_name($result, -1);
113 pg_field_name($result, 3);
118 pg_field_table($result, -1);
123 pg_field_table($result, 3);
128 $result = pg_query($db, "INSERT INTO ".$table_name." VALUES (9999, 'ABC');");
129 pg_last_oid($result);
130 var_dump(pg_fetch_all($result));
132 pg_free_result($result);
139 Argument #3 must be less than the number of fields for this result set
140 Argument #3 must be a field name from this result set
142 pg_fetch_all_columns(): Argument #2 ($field) must be less than the number of fields for this result…
144 Argument #2 must be less than the number of fields for this result set
145 Argument #2 must be a field name from this result set
147 pg_field_name(): Argument #2 ($field) must be less than the number of fields for this result set
149 pg_field_table(): Argument #2 ($field) must be less than the number of fields for this result set