<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body>
<div id = "hlt"> 10</div>
<div id = "atk"> 1</div>
<div id = "res"></div>
<script>
function on()
{
if (document.getElementById('res').innerHTML.length == 0) {
document.getElementById('res').innerHTML = document.getElementById('hlt').innerHTML - document.getElementById('atk').innerHTML;
} else {
document.getElementById('res').innerHTML = document.getElementById('res').innerHTML - document.getElementById('atk').innerHTML;
}
}
</script>
<button onclick="on()">ha</button>
</body>
</html>
mysql --host=127.0.0.1 --user=myname --password=mypass
CREATE DATABASE dbname;
use dbname;
SOURCE db_backup.sql;