seperate class for dbconnection

created class for Movie reindexing
This commit is contained in:
lukas-heiligenbrunner
2020-04-04 12:21:30 +02:00
parent ddf6140c32
commit 5448d85c18
5 changed files with 70 additions and 25 deletions

View File

@@ -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);
});
});