As simple in theory as it sounds I've done a fair amount of research and am having trouble figuring this out.
How can I check if a MySQL table exists and if it does do something. (I guess a simple php if/else statement could work for this)
Is there a way to do this?
This is what I have done with cwallenpoole's response:
mysql_connect("SERVER","USERNAME","PASSWORD");
mysql_select_db('DATABASE');
$val = mysql_query('select 1 from `TABLE`');
if($val !== FALSE)
{
print("Exists");
}else{
print("Doesn't exist");
}