Debian Codegraph @

codelitephp/resources/cc/mysql.php

raw
1 <?php
2
3 // Start of mysql v.1.0
4
5 /**
6 * Open a connection to a MySQL Server
7 * @link http://www.php.net/manual/en/function.mysql-connect.php
8 * @param server string[optional] <p>
9 * The MySQL server. It can also include a port number. e.g.
10 * "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for
11 * the localhost.
12 * </p>
13 * <p>
14 * If the PHP directive
15 * mysql.default_host is undefined (default), then the default
16 * value is 'localhost:3306'. In &sqlsafemode;, this parameter is ignored
17 * and value 'localhost:3306' is always used.
18 * </p>
19 * @param username string[optional] <p>
20 * The username. Default value is defined by mysql.default_user. In
21 * &sqlsafemode;, this parameter is ignored and the name of the user that
22 * owns the server process is used.
23 * </p>
24 * @param password string[optional] <p>
25 * The password. Default value is defined by mysql.default_password. In
26 * &sqlsafemode;, this parameter is ignored and empty password is used.
27 * </p>
28 * @param new_link bool[optional] <p>
29 * If a second call is made to mysql_connect
30 * with the same arguments, no new link will be established, but
31 * instead, the link identifier of the already opened link will be
32 * returned. The new_link parameter modifies this
33 * behavior and makes mysql_connect always open
34 * a new link, even if mysql_connect was called
35 * before with the same parameters.
36 * In &sqlsafemode;, this parameter is ignored.
37 * </p>
38 * @param client_flags int[optional] <p>
39 * The client_flags parameter can be a combination
40 * of the following constants:
41 * 128 (enable LOAD DATA LOCAL handling),
42 * MYSQL_CLIENT_SSL,
43 * MYSQL_CLIENT_COMPRESS,
44 * MYSQL_CLIENT_IGNORE_SPACE or
45 * MYSQL_CLIENT_INTERACTIVE.
46 * Read the section about for further information.
47 * In &sqlsafemode;, this parameter is ignored.
48 * </p>
49 * @return resource a MySQL link identifier on success&return.falseforfailure;.
50 */
51 function mysql_connect ($server = null, $username = null, $password = null, $new_link = null, $client_flags = null) {}
52
53 /**
54 * Open a persistent connection to a MySQL server
55 * @link http://www.php.net/manual/en/function.mysql-pconnect.php
56 * @param server string[optional] <p>
57 * The MySQL server. It can also include a port number. e.g.
58 * "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for
59 * the localhost.
60 * </p>
61 * <p>
62 * If the PHP directive
63 * mysql.default_host is undefined (default), then the default
64 * value is 'localhost:3306'
65 * </p>
66 * @param username string[optional] <p>
67 * The username. Default value is the name of the user that owns the
68 * server process.
69 * </p>
70 * @param password string[optional] <p>
71 * The password. Default value is an empty password.
72 * </p>
73 * @param client_flags int[optional] <p>
74 * The client_flags parameter can be a combination
75 * of the following constants:
76 * 128 (enable LOAD DATA LOCAL handling),
77 * MYSQL_CLIENT_SSL,
78 * MYSQL_CLIENT_COMPRESS,
79 * MYSQL_CLIENT_IGNORE_SPACE or
80 * MYSQL_CLIENT_INTERACTIVE.
81 * </p>
82 * @return resource a MySQL persistent link identifier on success, or false on
83 * failure.
84 */
85 function mysql_pconnect ($server = null, $username = null, $password = null, $client_flags = null) {}
86
87 /**
88 * Close MySQL connection
89 * @link http://www.php.net/manual/en/function.mysql-close.php
90 * @param link_identifier resource[optional]
91 * @return bool Returns true on success, false on failure.
92 */
93 function mysql_close ($link_identifier = null) {}
94
95 /**
96 * Select a MySQL database
97 * @link http://www.php.net/manual/en/function.mysql-select-db.php
98 * @param database_name string <p>
99 * The name of the database that is to be selected.
100 * </p>
101 * @param link_identifier resource[optional]
102 * @return bool Returns true on success, false on failure.
103 */
104 function mysql_select_db ($database_name, $link_identifier = null) {}
105
106 /**
107 * Send a MySQL query
108 * @link http://www.php.net/manual/en/function.mysql-query.php
109 * @param query string <p>
110 * An SQL query
111 * </p>
112 * <p>
113 * The query string should not end with a semicolon.
114 * Data inside the query should be properly escaped.
115 * </p>
116 * @param link_identifier resource[optional]
117 * @return mixed For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset,
118 * mysql_query
119 * returns a resource on success, or false on
120 * error.
121 * </p>
122 * <p>
123 * For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc,
124 * mysql_query returns true on success
125 * or false on error.
126 * </p>
127 * <p>
128 * The returned result resource should be passed to
129 * mysql_fetch_array, and other
130 * functions for dealing with result tables, to access the returned data.
131 * </p>
132 * <p>
133 * Use mysql_num_rows to find out how many rows
134 * were returned for a SELECT statement or
135 * mysql_affected_rows to find out how many
136 * rows were affected by a DELETE, INSERT, REPLACE, or UPDATE
137 * statement.
138 * </p>
139 * <p>
140 * mysql_query will also fail and return false
141 * if the user does not have permission to access the table(s) referenced by
142 * the query.
143 */
144 function mysql_query ($query, $link_identifier = null) {}
145
146 /**
147 * Send an SQL query to MySQL without fetching and buffering the result rows.
148 * @link http://www.php.net/manual/en/function.mysql-unbuffered-query.php
149 * @param query string <p>
150 * The SQL query to execute.
151 * </p>
152 * <p>
153 * Data inside the query should be properly escaped.
154 * </p>
155 * @param link_identifier resource[optional]
156 * @return resource For SELECT, SHOW, DESCRIBE or EXPLAIN statements,
157 * mysql_unbuffered_query
158 * returns a resource on success, or false on
159 * error.
160 * </p>
161 * <p>
162 * For other type of SQL statements, UPDATE, DELETE, DROP, etc,
163 * mysql_unbuffered_query returns true on success
164 * or false on error.
165 */
166 function mysql_unbuffered_query ($query, $link_identifier = null) {}
167
168 /**
169 * Selects a database and executes a query on it
170 * @link http://www.php.net/manual/en/function.mysql-db-query.php
171 * @param database string <p>
172 * The name of the database that will be selected.
173 * </p>
174 * @param query string <p>
175 * The MySQL query.
176 * </p>
177 * <p>
178 * Data inside the query should be properly escaped.
179 * </p>
180 * @param link_identifier resource[optional]
181 * @return resource a positive MySQL result resource to the query result,
182 * or false on error. The function also returns true/false for
183 * INSERT/UPDATE/DELETE
184 * queries to indicate success/failure.
185 */
186 function mysql_db_query ($database, $query, $link_identifier = null) {}
187
188 /**
189 * List databases available on a MySQL server
190 * @link http://www.php.net/manual/en/function.mysql-list-dbs.php
191 * @param link_identifier resource[optional]
192 * @return resource a result pointer resource on success, or false on
193 * failure. Use the mysql_tablename function to traverse
194 * this result pointer, or any function for result tables, such as
195 * mysql_fetch_array.
196 */
197 function mysql_list_dbs ($link_identifier = null) {}
198
199 /**
200 * List tables in a MySQL database
201 * @link http://www.php.net/manual/en/function.mysql-list-tables.php
202 * @param database string <p>
203 * The name of the database
204 * </p>
205 * @param link_identifier resource[optional]
206 * @return resource A result pointer resource on success&return.falseforfailure;.
207 * </p>
208 * <p>
209 * Use the mysql_tablename function to
210 * traverse this result pointer, or any function for result tables,
211 * such as mysql_fetch_array.
212 */
213 function mysql_list_tables ($database, $link_identifier = null) {}
214
215 /**
216 * List MySQL table fields
217 * @link http://www.php.net/manual/en/function.mysql-list-fields.php
218 * @param database_name string <p>
219 * The name of the database that's being queried.
220 * </p>
221 * @param table_name string <p>
222 * The name of the table that's being queried.
223 * </p>
224 * @param link_identifier resource[optional]
225 * @return resource A result pointer resource on success, or false on
226 * failure.
227 * </p>
228 * <p>
229 * The returned result can be used with mysql_field_flags,
230 * mysql_field_len,
231 * mysql_field_name&listendand;
232 * mysql_field_type.
233 */
234 function mysql_list_fields ($database_name, $table_name, $link_identifier = null) {}
235
236 /**
237 * List MySQL processes
238 * @link http://www.php.net/manual/en/function.mysql-list-processes.php
239 * @param link_identifier resource[optional]
240 * @return resource A result pointer resource on success&return.falseforfailure;.
241 */
242 function mysql_list_processes ($link_identifier = null) {}
243
244 /**
245 * Returns the text of the error message from previous MySQL operation
246 * @link http://www.php.net/manual/en/function.mysql-error.php
247 * @param link_identifier resource[optional]
248 * @return string the error text from the last MySQL function, or
249 * '' (empty string) if no error occurred.
250 */
251 function mysql_error ($link_identifier = null) {}
252
253 /**
254 * Returns the numerical value of the error message from previous MySQL operation
255 * @link http://www.php.net/manual/en/function.mysql-errno.php
256 * @param link_identifier resource[optional]
257 * @return int the error number from the last MySQL function, or
258 * 0 (zero) if no error occurred.
259 */
260 function mysql_errno ($link_identifier = null) {}
261
262 /**
263 * Get number of affected rows in previous MySQL operation
264 * @link http://www.php.net/manual/en/function.mysql-affected-rows.php
265 * @param link_identifier resource[optional]
266 * @return int the number of affected rows on success, and -1 if the last query
267 * failed.
268 * </p>
269 * <p>
270 * If the last query was a DELETE query with no WHERE clause, all
271 * of the records will have been deleted from the table but this
272 * function will return zero with MySQL versions prior to 4.1.2.
273 * </p>
274 * <p>
275 * When using UPDATE, MySQL will not update columns where the new value is the
276 * same as the old value. This creates the possibility that
277 * mysql_affected_rows may not actually equal the number
278 * of rows matched, only the number of rows that were literally affected by
279 * the query.
280 * </p>
281 * <p>
282 * The REPLACE statement first deletes the record with the same primary key
283 * and then inserts the new record. This function returns the number of
284 * deleted records plus the number of inserted records.
285 * </p>
286 * <p>
287 * In the case of "INSERT ... ON DUPLICATE KEY UPDATE" queries, the
288 * return value will be 1 if an insert was performed,
289 * or 2 for an update of an existing row.
290 */
291 function mysql_affected_rows ($link_identifier = null) {}
292
293 /**
294 * Get the ID generated in the last query
295 * @link http://www.php.net/manual/en/function.mysql-insert-id.php
296 * @param link_identifier resource[optional]
297 * @return int The ID generated for an AUTO_INCREMENT column by the previous
298 * query on success, 0 if the previous
299 * query does not generate an AUTO_INCREMENT value, or false if
300 * no MySQL connection was established.
301 */
302 function mysql_insert_id ($link_identifier = null) {}
303
304 /**
305 * Get result data
306 * @link http://www.php.net/manual/en/function.mysql-result.php
307 * @param result resource
308 * @param row int <p>
309 * The row number from the result that's being retrieved. Row numbers
310 * start at 0.
311 * </p>
312 * @param field mixed[optional] <p>
313 * The name or offset of the field being retrieved.
314 * </p>
315 * <p>
316 * It can be the field's offset, the field's name, or the field's table
317 * dot field name (tablename.fieldname). If the column name has been
318 * aliased ('select foo as bar from...'), use the alias instead of the
319 * column name. If undefined, the first field is retrieved.
320 * </p>
321 * @return string The contents of one cell from a MySQL result set on success, or
322 * false on failure.
323 */
324 function mysql_result ($result, $row, $field = null) {}
325
326 /**
327 * Get number of rows in result
328 * @link http://www.php.net/manual/en/function.mysql-num-rows.php
329 * @param result resource
330 * @return int The number of rows in a result set on success&return.falseforfailure;.
331 */
332 function mysql_num_rows ($result) {}
333
334 /**
335 * Get number of fields in result
336 * @link http://www.php.net/manual/en/function.mysql-num-fields.php
337 * @param result resource
338 * @return int the number of fields in the result set resource on
339 * success&return.falseforfailure;.
340 */
341 function mysql_num_fields ($result) {}
342
343 /**
344 * Get a result row as an enumerated array
345 * @link http://www.php.net/manual/en/function.mysql-fetch-row.php
346 * @param result resource
347 * @return array an numerical array of strings that corresponds to the fetched row, or
348 * false if there are no more rows.
349 * </p>
350 * <p>
351 * mysql_fetch_row fetches one row of data from
352 * the result associated with the specified result identifier. The
353 * row is returned as an array. Each result column is stored in an
354 * array offset, starting at offset 0.
355 */
356 function mysql_fetch_row ($result) {}
357
358 /**
359 * Fetch a result row as an associative array, a numeric array, or both
360 * @link http://www.php.net/manual/en/function.mysql-fetch-array.php
361 * @param result resource
362 * @param result_type int[optional] <p>
363 * The type of array that is to be fetched. It's a constant and can
364 * take the following values: MYSQL_ASSOC,
365 * MYSQL_NUM, and
366 * MYSQL_BOTH.
367 * </p>
368 * @return array an array of strings that corresponds to the fetched row, or false
369 * if there are no more rows. The type of returned array depends on
370 * how result_type is defined. By using
371 * MYSQL_BOTH (default), you'll get an array with both
372 * associative and number indices. Using MYSQL_ASSOC, you
373 * only get associative indices (as mysql_fetch_assoc
374 * works), using MYSQL_NUM, you only get number indices
375 * (as mysql_fetch_row works).
376 * </p>
377 * <p>
378 * If two or more columns of the result have the same field names,
379 * the last column will take precedence. To access the other column(s)
380 * of the same name, you must use the numeric index of the column or
381 * make an alias for the column. For aliased columns, you cannot
382 * access the contents with the original column name.
383 */
384 function mysql_fetch_array ($result, $result_type = null) {}
385
386 /**
387 * Fetch a result row as an associative array
388 * @link http://www.php.net/manual/en/function.mysql-fetch-assoc.php
389 * @param result resource
390 * @return array an associative array of strings that corresponds to the fetched row, or
391 * false if there are no more rows.
392 * </p>
393 * <p>
394 * If two or more columns of the result have the same field names,
395 * the last column will take precedence. To access the other
396 * column(s) of the same name, you either need to access the
397 * result with numeric indices by using
398 * mysql_fetch_row or add alias names.
399 * See the example at the mysql_fetch_array
400 * description about aliases.
401 */
402 function mysql_fetch_assoc ($result) {}
403
404 /**
405 * Fetch a result row as an object
406 * @link http://www.php.net/manual/en/function.mysql-fetch-object.php
407 * @param result resource
408 * @param class_name string[optional] <p>
409 * The name of the class to instantiate, set the properties of and return.
410 * If not specified, a stdClass object is returned.
411 * </p>
412 * @param params array[optional] <p>
413 * An optional array of parameters to pass to the constructor
414 * for class_name objects.
415 * </p>
416 * @return object an object with string properties that correspond to the
417 * fetched row, or false if there are no more rows.
418 */
419 function mysql_fetch_object ($result, $class_name = null, array $params = null) {}
420
421 /**
422 * Move internal result pointer
423 * @link http://www.php.net/manual/en/function.mysql-data-seek.php
424 * @param result resource
425 * @param row_number int <p>
426 * The desired row number of the new result pointer.
427 * </p>
428 * @return bool Returns true on success, false on failure.
429 */
430 function mysql_data_seek ($result, $row_number) {}
431
432 /**
433 * Get the length of each output in a result
434 * @link http://www.php.net/manual/en/function.mysql-fetch-lengths.php
435 * @param result resource
436 * @return array An array of lengths on success&return.falseforfailure;.
437 */
438 function mysql_fetch_lengths ($result) {}
439
440 /**
441 * Get column information from a result and return as an object
442 * @link http://www.php.net/manual/en/function.mysql-fetch-field.php
443 * @param result resource
444 * @param field_offset int[optional] <p>
445 * The numerical field offset. If the field offset is not specified, the
446 * next field that was not yet retrieved by this function is retrieved.
447 * The field_offset starts at 0.
448 * </p>
449 * @return object an object containing field information. The properties
450 * of the object are:
451 * </p>
452 * <p>
453 *
454 *
455 *
456 * name - column name
457 *
458 *
459 *
460 *
461 * table - name of the table the column belongs to, which is the alias name if one is defined
462 *
463 *
464 *
465 *
466 * max_length - maximum length of the column
467 *
468 *
469 *
470 *
471 * not_null - 1 if the column cannot be &null;
472 *
473 *
474 *
475 *
476 * primary_key - 1 if the column is a primary key
477 *
478 *
479 *
480 *
481 * unique_key - 1 if the column is a unique key
482 *
483 *
484 *
485 *
486 * multiple_key - 1 if the column is a non-unique key
487 *
488 *
489 *
490 *
491 * numeric - 1 if the column is numeric
492 *
493 *
494 *
495 *
496 * blob - 1 if the column is a BLOB
497 *
498 *
499 *
500 *
501 * type - the type of the column
502 *
503 *
504 *
505 *
506 * unsigned - 1 if the column is unsigned
507 *
508 *
509 *
510 *
511 * zerofill - 1 if the column is zero-filled
512 */
513 function mysql_fetch_field ($result, $field_offset = null) {}
514
515 /**
516 * Set result pointer to a specified field offset
517 * @link http://www.php.net/manual/en/function.mysql-field-seek.php
518 * @param result resource
519 * @param field_offset int
520 * @return bool Returns true on success, false on failure.
521 */
522 function mysql_field_seek ($result, $field_offset) {}
523
524 /**
525 * Free result memory
526 * @link http://www.php.net/manual/en/function.mysql-free-result.php
527 * @param result resource
528 * @return bool Returns true on success, false on failure.
529 * </p>
530 * <p>
531 * If a non-resource is used for the result, an
532 * error of level E_WARNING will be emitted. It's worth noting that
533 * mysql_query only returns a resource
534 * for SELECT, SHOW, EXPLAIN, and DESCRIBE queries.
535 */
536 function mysql_free_result ($result) {}
537
538 /**
539 * Get the name of the specified field in a result
540 * @link http://www.php.net/manual/en/function.mysql-field-name.php
541 * @param result resource
542 * @param field_offset int
543 * @return string The name of the specified field index on success&return.falseforfailure;.
544 */
545 function mysql_field_name ($result, $field_offset) {}
546
547 /**
548 * Get name of the table the specified field is in
549 * @link http://www.php.net/manual/en/function.mysql-field-table.php
550 * @param result resource
551 * @param field_offset int
552 * @return string The name of the table on success.
553 */
554 function mysql_field_table ($result, $field_offset) {}
555
556 /**
557 * Returns the length of the specified field
558 * @link http://www.php.net/manual/en/function.mysql-field-len.php
559 * @param result resource
560 * @param field_offset int
561 * @return int The length of the specified field index on success&return.falseforfailure;.
562 */
563 function mysql_field_len ($result, $field_offset) {}
564
565 /**
566 * Get the type of the specified field in a result
567 * @link http://www.php.net/manual/en/function.mysql-field-type.php
568 * @param result resource
569 * @param field_offset int
570 * @return string The returned field type
571 * will be one of "int", "real",
572 * "string", "blob", and others as
573 * detailed in the MySQL
574 * documentation.
575 */
576 function mysql_field_type ($result, $field_offset) {}
577
578 /**
579 * Get the flags associated with the specified field in a result
580 * @link http://www.php.net/manual/en/function.mysql-field-flags.php
581 * @param result resource
582 * @param field_offset int
583 * @return string a string of flags associated with the result&return.falseforfailure;.
584 * </p>
585 * <p>
586 * The following flags are reported, if your version of MySQL
587 * is current enough to support them: "not_null",
588 * "primary_key", "unique_key",
589 * "multiple_key", "blob",
590 * "unsigned", "zerofill",
591 * "binary", "enum",
592 * "auto_increment" and "timestamp".
593 */
594 function mysql_field_flags ($result, $field_offset) {}
595
596 /**
597 * Escapes a string for use in a mysql_query
598 * @link http://www.php.net/manual/en/function.mysql-escape-string.php
599 * @param unescaped_string string <p>
600 * The string that is to be escaped.
601 * </p>
602 * @return string the escaped string.
603 */
604 function mysql_escape_string ($unescaped_string) {}
605
606 /**
607 * Escapes special characters in a string for use in an SQL statement
608 * @link http://www.php.net/manual/en/function.mysql-real-escape-string.php
609 * @param unescaped_string string <p>
610 * The string that is to be escaped.
611 * </p>
612 * @param link_identifier resource[optional]
613 * @return string the escaped string, or false on error.
614 */
615 function mysql_real_escape_string ($unescaped_string, $link_identifier = null) {}
616
617 /**
618 * Get current system status
619 * @link http://www.php.net/manual/en/function.mysql-stat.php
620 * @param link_identifier resource[optional]
621 * @return string a string with the status for uptime, threads, queries, open tables,
622 * flush tables and queries per second. For a complete list of other status
623 * variables, you have to use the SHOW STATUS SQL command.
624 * If link_identifier is invalid, &null; is returned.
625 */
626 function mysql_stat ($link_identifier = null) {}
627
628 /**
629 * Return the current thread ID
630 * @link http://www.php.net/manual/en/function.mysql-thread-id.php
631 * @param link_identifier resource[optional]
632 * @return int The thread ID on success&return.falseforfailure;.
633 */
634 function mysql_thread_id ($link_identifier = null) {}
635
636 /**
637 * Returns the name of the character set
638 * @link http://www.php.net/manual/en/function.mysql-client-encoding.php
639 * @param link_identifier resource[optional]
640 * @return string the default character set name for the current connection.
641 */
642 function mysql_client_encoding ($link_identifier = null) {}
643
644 /**
645 * Ping a server connection or reconnect if there is no connection
646 * @link http://www.php.net/manual/en/function.mysql-ping.php
647 * @param link_identifier resource[optional]
648 * @return bool true if the connection to the server MySQL server is working,
649 * otherwise false.
650 */
651 function mysql_ping ($link_identifier = null) {}
652
653 /**
654 * Get MySQL client info
655 * @link http://www.php.net/manual/en/function.mysql-get-client-info.php
656 * @return string The MySQL client version.
657 */
658 function mysql_get_client_info () {}
659
660 /**
661 * Get MySQL host info
662 * @link http://www.php.net/manual/en/function.mysql-get-host-info.php
663 * @param link_identifier resource[optional]
664 * @return string a string describing the type of MySQL connection in use for the
665 * connection&return.falseforfailure;.
666 */
667 function mysql_get_host_info ($link_identifier = null) {}
668
669 /**
670 * Get MySQL protocol info
671 * @link http://www.php.net/manual/en/function.mysql-get-proto-info.php
672 * @param link_identifier resource[optional]
673 * @return int the MySQL protocol on success&return.falseforfailure;.
674 */
675 function mysql_get_proto_info ($link_identifier = null) {}
676
677 /**
678 * Get MySQL server info
679 * @link http://www.php.net/manual/en/function.mysql-get-server-info.php
680 * @param link_identifier resource[optional]
681 * @return string the MySQL server version on success&return.falseforfailure;.
682 */
683 function mysql_get_server_info ($link_identifier = null) {}
684
685 /**
686 * Get information about the most recent query
687 * @link http://www.php.net/manual/en/function.mysql-info.php
688 * @param link_identifier resource[optional]
689 * @return string information about the statement on success, or false on
690 * failure. See the example below for which statements provide information,
691 * and what the returned value may look like. Statements that are not listed
692 * will return false.
693 */
694 function mysql_info ($link_identifier = null) {}
695
696 /**
697 * Sets the client character set
698 * @link http://www.php.net/manual/en/function.mysql-set-charset.php
699 * @param charset string <p>
700 * A valid character set name.
701 * </p>
702 * @param link_identifier resource[optional]
703 * @return bool Returns true on success, false on failure.
704 */
705 function mysql_set_charset ($charset, $link_identifier = null) {}
706
707 /**
708 * @param database_name
709 * @param query
710 * @param link_identifier[optional]
711 */
712 function mysql ($database_name, $query, $link_identifier) {}
713
714 /**
715 * @param result
716 * @param field_index
717 */
718 function mysql_fieldname ($result, $field_index) {}
719
720 /**
721 * @param result
722 * @param field_offset
723 */
724 function mysql_fieldtable ($result, $field_offset) {}
725
726 /**
727 * @param result
728 * @param field_offset
729 */
730 function mysql_fieldlen ($result, $field_offset) {}
731
732 /**
733 * @param result
734 * @param field_offset
735 */
736 function mysql_fieldtype ($result, $field_offset) {}
737
738 /**
739 * @param result
740 * @param field_offset
741 */
742 function mysql_fieldflags ($result, $field_offset) {}
743
744 /**
745 * @param database_name
746 * @param link_identifier[optional]
747 */
748 function mysql_selectdb ($database_name, $link_identifier) {}
749
750 /**
751 * @param result
752 */
753 function mysql_freeresult ($result) {}
754
755 /**
756 * @param result
757 */
758 function mysql_numfields ($result) {}
759
760 /**
761 * @param result
762 */
763 function mysql_numrows ($result) {}
764
765 /**
766 * @param link_identifier[optional]
767 */
768 function mysql_listdbs ($link_identifier) {}
769
770 /**
771 * @param database_name
772 * @param link_identifier[optional]
773 */
774 function mysql_listtables ($database_name, $link_identifier) {}
775
776 /**
777 * @param database_name
778 * @param table_name
779 * @param link_identifier[optional]
780 */
781 function mysql_listfields ($database_name, $table_name, $link_identifier) {}
782
783 /**
784 * Retrieves database name from the call to <function>mysql_list_dbs</function>
785 * @link http://www.php.net/manual/en/function.mysql-db-name.php
786 * @param result resource <p>
787 * The result pointer from a call to mysql_list_dbs.
788 * </p>
789 * @param row int <p>
790 * The index into the result set.
791 * </p>
792 * @param field mixed[optional] <p>
793 * The field name.
794 * </p>
795 * @return string the database name on success, and false on failure. If false
796 * is returned, use mysql_error to determine the nature
797 * of the error.
798 */
799 function mysql_db_name ($result, $row, $field = null) {}
800
801 /**
802 * @param result
803 * @param row
804 * @param field[optional]
805 */
806 function mysql_dbname ($result, $row, $field) {}
807
808 /**
809 * Get table name of field
810 * @link http://www.php.net/manual/en/function.mysql-tablename.php
811 * @param result resource <p>
812 * A result pointer resource that's returned from
813 * mysql_list_tables.
814 * </p>
815 * @param i int <p>
816 * The integer index (row/table number)
817 * </p>
818 * @return string The name of the table on success&return.falseforfailure;.
819 * </p>
820 * <p>
821 * Use the mysql_tablename function to
822 * traverse this result pointer, or any function for result tables,
823 * such as mysql_fetch_array.
824 */
825 function mysql_tablename ($result, $i) {}
826
827 /**
828 * @param result
829 * @param row
830 * @param field[optional]
831 */
832 function mysql_table_name ($result, $row, $field) {}
833
834
835 /**
836 * Columns are returned into the array having the fieldname as the array
837 * index.
838 * @link http://www.php.net/manual/en/mysql.constants.php
839 */
840 define ('MYSQL_ASSOC', 1);
841
842 /**
843 * Columns are returned into the array having a numerical index to the
844 * fields. This index starts with 0, the first field in the result.
845 * @link http://www.php.net/manual/en/mysql.constants.php
846 */
847 define ('MYSQL_NUM', 2);
848
849 /**
850 * Columns are returned into the array having both a numerical index
851 * and the fieldname as the array index.
852 * @link http://www.php.net/manual/en/mysql.constants.php
853 */
854 define ('MYSQL_BOTH', 3);
855
856 /**
857 * Use compression protocol
858 * @link http://www.php.net/manual/en/mysql.constants.php
859 */
860 define ('MYSQL_CLIENT_COMPRESS', 32);
861
862 /**
863 * Use SSL encryption. This flag is only available with version 4.x
864 * of the MySQL client library or newer. Version 3.23.x is bundled both
865 * with PHP 4 and Windows binaries of PHP 5.
866 * @link http://www.php.net/manual/en/mysql.constants.php
867 */
868 define ('MYSQL_CLIENT_SSL', 2048);
869
870 /**
871 * Allow interactive_timeout seconds (instead of wait_timeout) of
872 * inactivity before closing the connection.
873 * @link http://www.php.net/manual/en/mysql.constants.php
874 */
875 define ('MYSQL_CLIENT_INTERACTIVE', 1024);
876
877 /**
878 * Allow space after function names
879 * @link http://www.php.net/manual/en/mysql.constants.php
880 */
881 define ('MYSQL_CLIENT_IGNORE_SPACE', 256);
882
883 // End of mysql v.1.0
884 ?>