I am working with a php program and want to check if a table exists. If it does exist, do nothing, if it doesn't create and populate the table. I ran across
if(mysql_query("DESCRIBE `table`")) {
// Exists
}
but this only takes action if it does exist. Would this
if(!mysql_query("DESCRIBE `table`")) {
// create and populate table
}
do what I am asking?