fixing some bugs
This commit is contained in:
@@ -36,7 +36,8 @@
|
||||
else
|
||||
$sql="Select id,apikey,printer_url from printer where id=$print_on and free=1";
|
||||
//echo $sql;
|
||||
$stmt = mysqli_prepare($link, $sql)mysqli_stmt_execute($stmt);
|
||||
$stmt = mysqli_prepare($link, $sql);
|
||||
mysqli_stmt_execute($stmt);
|
||||
mysqli_stmt_store_result($stmt);
|
||||
mysqli_stmt_bind_result($stmt, $id,$papikey,$purl);
|
||||
mysqli_stmt_fetch($stmt);
|
||||
|
||||
@@ -6,7 +6,6 @@ include "../config/config.php";
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<script src="/assets/js/load_page.js"></script>
|
||||
<script>
|
||||
function load_user()
|
||||
@@ -17,13 +16,10 @@ function load_user()
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
|
||||
echo "<script type='text/javascript' >load_user()</script>";
|
||||
|
||||
|
||||
?>
|
||||
<?php
|
||||
$color=$_SESSION["color"];
|
||||
<?php
|
||||
$color=$_SESSION["color"];
|
||||
include "../assets/components.php";
|
||||
if(isset($_POST["printer"])){
|
||||
$color=htmlspecialchars($_GET["color"]);
|
||||
@@ -32,7 +28,6 @@ function load_user()
|
||||
//echo($sql);
|
||||
$stmt = mysqli_prepare($link, $sql);
|
||||
mysqli_stmt_execute($stmt);
|
||||
|
||||
}
|
||||
?>
|
||||
<div id="content"></div>
|
||||
|
||||
Reference in New Issue
Block a user