i am trying to create a table with php script. and before that i am trying to check for available name with PHP. but it is not working.
even if i enter a table which exits it is showing Not Exists: Incorrect table name
$sql1 = "SELECT * FROM `$mainnamechk`;";
if (mysql_query($sql1))
{
echo "<img width='35' height='25' src='img/good.png' title='Database $mainnamechk Exists'>";
}
else
{
echo "Not Exists:" . mysql_error();
echo"<br>";
}