Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$filename = "/path/to/file/createdb.sql";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
<?
$dbhost = "localhost";
$dbusername = "root";
$dbpass = "";
$dbname = "dbname";
$connection = mysql_connect($dbhost, $dbusername, $dbpass);
$SelectedDB = mysql_select_db($dbname);
$filename = "createdb.sql";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
mysql_query ("$contents");
?>
CREATE TABLE history (
uname varchar(25) NOT NULL default '',
time datetime,
ip varchar(25),
action varchar(100)
);
mysql_query($contents);
$connection = mysql_connect($dbhost, $dbusername, $dbpass) or die("Connect failed: " . mysql_error());
$SelectedDB = mysql_select_db($dbname) or die("Select failed: " . mysql_error());
$filename = "createdb.sql";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
mysql_query ($contents) or die("Query failed: " . mysql_error());
CREATE TABLE history (
uname varchar(25) NOT NULL default '',
stime datetime,
ip varchar(25),
action varchar(100)
)TYPE=MyISAM;
#create table profile
CREATE TABLE profile (
name varchar(20),
address varchar(50)
)TYPE=MyISAM;