How To Make Connection to DB
$ dbname = "testdb";
$ dbhost = "localhost";
$ dbuser = "username";
$ Dbpass = "password";
mysql_connect ($ dbhost, $ dbuser, $ dbpass);
mysql_select_db ($ dbname) =
$ SQL "INSERT INTO Users (last name, first name, department, class) VALUES ('$ last name ',' $ firstname ',' $ department ',' $ Year ') ";
mysql_query ($ SQL);
0 comments:
Post a Comment