I am green to mysql and php. I've got issues trying to create a table in my database
when i go to phpMyAdmin this table isn't there.
I don't even know how to start troubleshooting this because I'm just learning how the system works. Can anyone offer suggestions.
Code:
mysql_connect($hostname, $username, $password);
mysql_select_db($database) or die("Unable to select database");
$query="CREATE TABLE news (id int(6) NOT NULL,name varchar(15) NOT NULL, age int(2) NOT NULL,email varchar(20) NOT NULL)";
mysql_quert($query);
mysql_close();
I don't even know how to start troubleshooting this because I'm just learning how the system works. Can anyone offer suggestions.
Comment