I know the command is DROP TABLE IF EXISTS [table name], but how do I use it in PHP?

I've successfully connected to the MySQL server, but when I put that line in the PHP script, I get an error.