vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   All $DB_site functions (https://vborg.vbsupport.ru/showthread.php?t=69977)

miz 09-28-2004 10:00 PM

All $DB_site functions
 
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
:rolleyes:

Zachery 09-29-2004 02:00 AM

$DB_site is a class :) i think anyway

AnhTuanCool 09-29-2004 02:10 AM

I remember Xenon did say $DB_site is an object, isn't it ;)

Xenon 09-29-2004 12:09 PM

$DB_site is an object, speak it's an instance of the class called DB_Sql_vb which is definied in db_mysql.php

:)

miz 09-29-2004 01:30 PM

$DB_site site is a class but inside this class there is functions which coders used
so i just wanted them to be aware to all of the avilavble options...

Xenon 09-29-2004 01:45 PM

$DB_site isn't a class it's an object the class is called DB_Sql_vb :)

But i think it's good to see a little explanation of it's possibilities :)
thx.


All times are GMT. The time now is 06:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01299 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete