Mysqli Recordset search Like Session not working
I have created a Hashtag system and need to search based on a url par
my url looks like this:
untitled4.php?SearchTag=#great
I have created this code to create the session and remove the # from the par
<?php
if(isset($_GET['SearchTag'])) {
$SearchTerm = $_GET['SearchTag'];
$SearchTerm = preg_replace("#[^0-9a-z]#i","",$SearchTerm);
}
?>
I now have the mysqli recordset searching based on the var
<?php require_once('Connections/Connections.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
<?php
$Search = new WA_MySQLi_RS("Search",$Connections,1);
$Search->setQuery("SELECT * FROM siteezy_posts WHERE Post = ?");
$Search->bindParam("s", "".(isset($_SESSION['SearchTerm'])?$_SESSION['SearchTerm']:"") ."", "-1"); //colname
$Search->execute();
?>
for some reason it is not working and i only get a blank page?
Thanks in advance