Checking if table exists
Posted: Thu Feb 23, 2006 8:46 am
hello
i'm trying to write a function which creates tables when they don't already exist, i have seen the mysql_list_tables function and could build something of that but i was wondering if there was already a cleaner way of doing this.
eg:
thanx
i'm trying to write a function which creates tables when they don't already exist, i have seen the mysql_list_tables function and could build something of that but i was wondering if there was already a cleaner way of doing this.
eg:
Code: Select all
if (table_exists("members")){
....
}