Basically I want to create a relational database, using PHP code. How do I adapt the code posted in my previous post to reflect this?
To create a relational database named db, you would write:
mysql_query("CREATE DATABASE db", $con);
That's it. To create a table named persons with a column named name of type text in that database, you would select the database, and then write:
$sql = "CREATE TABLE persons
(
name text
)";
mysql_query($sql,$con);
Do you understand so far?
Are you familiar with SQL syntax?