The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
checking for existance of a table.
In a mod I am writing I use this query:
Code:
SELECT count(*) cnt FROM information_schema.tables WHERE table_schema = '$db_tmp_name' AND table_name = '".TABLE_PREFIX."mytable'"; |
#2
|
||||
|
||||
The query SHOW TABLES will list all the tables in a database - load them into an array and then use in_array() to check if a table exists.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|