How to check if a table exists in the current MySQL database, through running a simple query.
1. /*
2. This will list the table named Articles, if any exists;
3. It can be used in conjunction with functions such as
4. PHP's mysql_num_rows() to check if the table exists
5. */
6. SHOW TABLES LIKE 'Articles'