} else { $nChkN = $l + 1; } $nextID = $photoRes[$nChkN]['picID']; $photoPic .= <<<TO <!-- Right arrow shall be included in the ajax --> <div id="allPhotoRightArrow"> <a href="../libs/aAjaxClass/photoAjax.php?user={$curU}&PN={$nChkN}&imgID={$nextID}&PVB=true&album={$album}"></a> </div> TO; break; } } $comInfo = sideComments($pID); $approve = getApprove($pID); $appPeople = getPeopleApprove($pID); $comCount = getCommentCount($pID); $pPostID = "post_" . getPostID($pID); $title = date('l, M d, Y @ h:ia', $PVBRes[0]['picTime']); $time = relativeTime($PVBRes[0]['picTime']); /**/ $allData = ["op" => "YES", "pic" => $photoPic, "picTime" => $time, "com" => $comInfo, "approve" => $approve, "peopleAprove" => $appPeople, "comCount" => $comCount, "postID" => $pPostID, "albumN" => $album, "title" => $title]; echo json_encode($allData); //print_r($allData); } } //ADD NEW ALBUM TO THE PHOTO ADD if ($_GET['newAlbum'] == true) { $ab = []; $fabulm = false;
function approveInfo() { $approve = getApprove(); return $approve; }