Create data table code in php. Create a data table code in the php Tutorial $ linkmysql tutorial _ connect (localhost, root, 3435945) ordie (***. mysql_error (); echo is successfully sent to the server; if (mysql_select_db (base2, $ link) ec creates data table code in the php Tutorial
$ Link = mysql tutorial _ connect ("localhost", "root", "3435945") or die ("***". mysql_error ());
Echo "successfully connected to the server ";
If (mysql_select_db (base2, $ link) echo "select to base2 database tutorial ";
$ SQL = "create table t1 (id int (5) not null primary key, name varchar (12) not null )";
If (mysql_query ($ SQL, $ link ))
Echo "table T1 created successfully ";
Echo"
";
Echo "the tables in the current base2 database are :";
Echo"
";
$ Table_list = mysql_query ("show tables", $ link );
While ($ row = mysql_fetch_row ($ table_list )){
Echo $ row [0];
Echo"
";
}
‑ Data table code $ link = mysql tutorial _ connect (localhost, root, 3435945) or die (***. mysql_error (); echo is successfully sent to the server; if (mysql_select_db (base2, $ link) ec...