Jump to content

Archived

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

Phurien

Check if table exists...need help

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?

Share this post


Link to post
Share on other sites

×

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.