Back to vBulletin 3 Articles

All $DB_site functions
by miz 29 Sep 2004

well some people users db_site functions with out know all of them or what they are meaning

so here is the functions list for guys that want :

connect // connect to db server
affected_rows // same as mysql_affected_rows (show the rows that affected froum your query

geterrdesc // show mysql error

geterrno // show mysql error number

select_db // select database

query_unbuffered

shutdown_query

query // runs query

fetch_array // same as mysql_fetch_array

free_result // same as mysql_free_result

query_first // does a query and returns first row

data_seek // goes to row $pos

num_rows // returns number of rows in query

num_fields // returns number of fields in query

field_name // returns the name of a field in a query

insert_id() // returns last auto_increment field number assigned

close() // closes connection to the database

print_query // prints out the last query executed in <pre> tags

escape_string // escapes characters in string depending on Characterset

halt // prints warning message when there is an error

and i think thats all
if you want to find out how they working, try
includes/db_mysql.php

file

vblts.ru supports vBulletin®, 2022-2024