i am creating a admin panel of a site.when admin enter a category , a table of same category name is create in database, fields are all table are same.. in starting admin enter a lot of category..then how can i check that a table is already created in database..because all tables are empty. for that
i am trying this code
<?php $con = mysql_connect("localhost","root","");
if (!$con)
{die('Could not connect: ' . mysql_error());}
$sql="SELECT * FROM admin";//(for trial im a changing the name manuaaly)
$result=@mysql_query($sql);
if (!$result)
{
echo "No table exists";
}
else
{
echo "yes";
}
?>
but in this its always show "no table exists", if table is in the db.. how can i solve this..