I have solved this problem with this
$dataset = mysql_query('SHOW TABLES') ;
while( $row = mysql_fetch_row($dataset) )
{
if ( $row[0] == "mos_tbd_tags" ) {
[My code here]
break;
}
}
Now that works great to catch that the table exists, and sends the srcipt on its way.
Now I need to send it to a different place if the table does not exist. If I use a else statement the loop will not work.
Break breaks ou if it finds it.
Now I need to set some code for if it does not find it.
I would have thought that I could have put my code at the bottom and instead of break, ( wich if I understand just breaks out of the loop. but falls to other code in the script.
Is there and end or kill command that would jump completely out of the script?