seperate class for dbconnection
created class for Movie reindexing
This commit is contained in:
11
js/index.js
11
js/index.js
@@ -1,5 +1,5 @@
|
||||
Req.ready((event) => {
|
||||
Req.post("php/movie.php", "action=getMovies&test=2", function (dta) {
|
||||
Req.ready(() => {
|
||||
Req.post("php/index.php", "action=getMovies&test=2", function (dta) {
|
||||
console.log(dta);
|
||||
for (const ii in dta.data) {
|
||||
document.getElementsByClassName("mediawrapper").item(0).insertAdjacentHTML('beforeend', `
|
||||
@@ -7,15 +7,16 @@ Req.ready((event) => {
|
||||
}
|
||||
});
|
||||
|
||||
Req.post("php/movie.php", "action=storePic", function (dta) {
|
||||
Req.post("php/index.php", "action=storePic", function (dta) {
|
||||
console.log(dta);
|
||||
});
|
||||
|
||||
Req.post("php/movie.php", "action=readPic", function (dta) {
|
||||
Req.post("php/index.php", "action=readPic", function (dta) {
|
||||
console.log(dta);
|
||||
document.getElementById("tempici").src = dta.data;
|
||||
});
|
||||
|
||||
Req.post("php/movie.php", "action=getDbSize", function (dta) {
|
||||
Req.post("php/index.php", "action=getDbSize", function (dta) {
|
||||
console.log(dta);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user