![]() |
How to read from the database ?
Hi,
It seems that there are several functions for this: query_read, query_read_slave, query_first, query_first_slave. When it is appropiate to use each of them ? Regards, Razvan M. |
query_read(_slave) is for select queries, while query_first(_slave) will return the first row of the result. _slave will use the slave database (if there is one)
There's also query_write, which you can use for updates and inserts, etc. |
<a href="https://vborg.vbsupport.ru/showthread.php?t=119350&highlight=database+class" target="_blank">Using the vBulletin Database Class</a>
That is an excellent article that ought to give you all the information you need to know regarding the proper use of vBulletin's database class. |
Quote:
|
All times are GMT. The time now is 04:45 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|