Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
<?php
$link=mysql_connect('localhost','user','pass') or die("Could not connect");
mysql_select_db('base') or die("Could not select database");
$tableName = 'mypet';
$backupFile = 'backup/mypet.sql';
$query = "SELECT * INTO OUTFILE '$backupFile' FROM $tableName";
$result = mysql_query($query);
mysql_close($link);
?>
<?php
$link=mysql_connect('localhost','user','pass') or die("Could not connect");
mysql_select_db('base') or die("Could not select database");
$tableName = 'mypet';
$backupFile = 'backup/mypet.sql';
$query = "LOAD DATA INFILE 'backupFile' INTO TABLE $tableName";
$result = mysql_query($query);
mysql_close($link);
?>