I'm trying to insert data into a table called "intro" in a database called "test", but I keep getting an error. I edited my code so it would display the error it was getting. It shows
Table 'test.intro' doesn't exist when I access the page
The table is there though, I can see it in PHPmyAdmin. I echoed the INSERT query to the screen and tried pasting it in PHPmyAdmin and it works fine, it just wont work from my page.
<?php
// connect to the database
$conn = mysql_connect("localhost","chicago_admin","go");
$db = mysql_select_db("test", $conn) or die("Couldn't Select DB");
$sql = 'INSERT INTO `intro` (`id`, `last_name`, `first_name`) VALUES("","Men","The")' ;
$run = mysql_query($sql) or die(mysql_error());
?>
Any ideas why it would say that the table doesn't exist?