-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.php
executable file
·35 lines (27 loc) · 1.03 KB
/
install.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<span id="responce">
<input style="float:center; margin-left:12px" onclick="createTables();" type="submit" value="Create Tables">
<p>
</span>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
function createTables() {
$.ajax({ url: 'ajaxCalls/createTables.php',
type: 'post',
success: function(output) {
alert("Tables are created!");
document.getElementById('responce').innerHTML ='<input style="float:center; margin-left:12px" onclick="createTables();" type="submit" value="Create Tables">';
document.getElementById('responce').innerHTML +='<p>';
document.getElementById('responce').innerHTML +='<input style="float:center; margin-left:12px" onclick="insertValues();" type="submit" value="Insert Data">';
}
});
}
function insertValues() {
$.ajax({ url: 'ajaxCalls/insertData.php',
type: 'post',
success: function(output) {
alert("Tables are filled!");
window.location = "http://localhost/mainPage.php";
}
});
}
</script>