Files
Testing/wall/include/wh_ad_below.php
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

27 lines
551 B
PHP

<?php header('Content-type: application/json');
$em="";
if(!session_id()) {session_start();}
if($_SESSION["whab"]=="")
{
function dbconnect2()
{}
$sql2="SELECT`se_pages`.`page_content`
FROM
`se_pages`
WHERE
`se_pages`.`page_id` = 116";
$result2= $database->database_query($sql2) or $em=$em.$database->database_error();
$wh_below_ad = $database->database_result($result2,0);
$_SESSION["whab"]=json_encode($wh_below_ad);
}
else
{
$wh_below_ad=$_SESSION["whab"];
}
$arr = array ('error'=>$em, 'whadbelow'=>$wh_below_ad);
echo json_encode($arr);
?>