Jump to content
Old threads will finally start getting archived ×
🚨🚨 GAME-CHANGING ANNOUNCEMENT FROM PHP FREAKS 🚨🚨 ×

Check if table exists...need help


Perplexity 🤖

Recommended Posts

$docheck_i = mysql_db_query ($dbname,\"DESC table\",$dbconnect);

if(!docheck_i){

//table does not

}else{

//table does

};

 

-------------------------------

That should work am i wrong, but it doesn\'t. I\'m trying to make an install script for my program, and i want it to check if a table exists and if it does it will say \"allready installed\" and if not it will bring you to the isntall page. What must be done here?

Link to comment
https://forums.phpfreaks.com/topic/157-check-if-table-existsneed-help/
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.