In the webassist window.. i select filter post -> contains -> my session
But it is still not working
Here is the code
<?php
session_start();
if(isset($_GET['SearchTag'])) {
$_SESSION["SearchTerm"] = $_GET['SearchTag'];
$_SESSION["SearchTerm"] = preg_replace("#[^0-9a-z]#i","",$_SESSION["SearchTerm"]);
}
?>
<?php require_once('Connections/Connections.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
<?php
$Search = new WA_MySQLi_RS("Search",$Connections,0);
$Search->setQuery("SELECT * FROM siteezy_posts WHERE Post LIKE ?");
$Search->bindParam("s", "".(isset($_SESSION['SearchTerm'])?$_SESSION['SearchTerm']:"") ."", "-1"); //colname
$Search->execute();
?>
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<?php
while(!$Search->atEnd()) {
?>
<?php echo($Search->getColumnVal("Post")); ?>
<?php
$Search->moveNext();
}
$Search->moveFirst(); //return RS to first record
?>
</body>
</html>