Jump to content


Check if table exists...need help

  • Please log in to reply
2 replies to this topic

#1 Phurien

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 16 February 2003 - 12:41 AM

$docheck_i = mysql_db_query ($dbname,\"DESC table\",$dbconnect);
//table does not
//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?

#2 effigy

  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 16 February 2003 - 01:29 AM

is your table named table or did you forget the $?
Regexp | Unicode Article | Letter Database

#3 metalblend

  • Members
  • PipPipPip
  • Advanced Member
  • 89 posts
  • LocationCalifornia, USA

Posted 16 February 2003 - 09:40 PM

Here\'s an easy way to do what you want.. http://www.oxyscript...wcode.php?id=12

I have a function similar to this one I\'ve made but it\'s a little more complicated than checking if a table exists.

Hope that helps.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users