PDA

View Full Version : [PHP] Best method of detecting if a table is present?


KW802
03-31-2006, 01:06 PM
Using PHP and working with a vB 3.5.x related hack/script, what is the absolute cleanest way of detecting if a table exists in the DB or not? I've seen a few suggestions on my travels but, to be frank, I'm not convinced they were the best solutions.

Before I start using some questionable methods I'd love to hear how others are checking for table presences in a vB 3.5.x environment.

Thanks :)

sabret00the
03-31-2006, 02:45 PM
custom function in which it calls a table, suppresses the error if any and gives a value if said error exists.

that's what i'd do for example.