Jump to content

can't drop a table


attaboy

Recommended Posts

	$q = mysqli_query($mysqli, "DROP TABLE IF EXIST 'airline_survey'");
	if($q){echo "deleted the table airline_survey....<br>";}
	else{echo "damm... ".mysqli_error($mysqli);}

 

$mysqli is my connection and it works I had no trouble creating the table but I decided to add these few lines in front of the code to create the table and I get this error.

 

damm...You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'EXIST 'airline_survey'' at line 1

I gotta believe this is really simple but it's got me stumped.

Link to comment
https://forums.phpfreaks.com/topic/259007-cant-drop-a-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.