request search results

[insert_php]
$servername = “biosensource.com.mysql”;
$username = “biosensource_co”;
$password = “MffkiPQQ”;
$con = mysqli_connect($servername, $username, $password);
session_start();

$sql=$_POST[“sql”];
$sql=str_replace(“\'”, “‘”, $sql);
/*echo $sql;
$sql=”SELECT * FROM `biosensource_co`.`requests` WHERE `receiver` = ‘”. $_SESSION[“user”] . “‘”;
echo $sql . “
“;*/

if (mysqli_query($con,$sql)){
$result = mysqli_query($con,$sql);
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
while($row = mysqli_fetch_array($result, MYSQL_ASSOC)) {
// If you want to display all results from the query at once:
// print_r($row);

// If you want to display the results one by one
echo ‘

‘;
}
echo ‘

submission date title current status
‘.$row[‘submission date’].’ ‘.$row[‘title’].’ ‘.$row[‘current status’].’

‘;
echo ‘

‘;
}
else {echo “Query failed. Please try again or contact support.”; }

[/insert_php]