Welcome Guest, Not a member yet? Register   Sign In
check if a table exists, if not, create one
#3

[eluser]mddd[/eluser]
edit
Of course, using the CI method for this is even easier than my suggestion below.


Why not use the Mysql command to do that:
Code:
SHOW TABLES
It will get you a result set containing the names of all existing tables. Just check if your table is in that list.


Messages In This Thread
check if a table exists, if not, create one - by El Forum - 04-15-2010, 12:59 AM
check if a table exists, if not, create one - by El Forum - 04-15-2010, 01:10 AM
check if a table exists, if not, create one - by El Forum - 04-15-2010, 01:10 AM
check if a table exists, if not, create one - by El Forum - 04-15-2010, 01:10 AM
check if a table exists, if not, create one - by El Forum - 04-15-2010, 01:16 AM
check if a table exists, if not, create one - by El Forum - 04-15-2010, 03:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB