Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Select 1 from table_name will return false if the table does not exist.
- $sql = "select 1 from `v_" . $mit . "` LIMIT 1";
- $res = $dbh->query($sql);
- if($res !== FALSE)
- {
- //DO SOMETHING! IT EXISTS!
- }
- else
- {
- //I can't find it...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement