[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 ‘
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]