Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mysqli = new mysqli("x", "w", "y", "z");
- $coresite = "Abbasya";
- $rowx = "103";
- $columnx = "3";
- $directionx = "Back";
- if($stmt = $mysqli->prepare("SELECT CABOwner, EtisaatTeam FROM CAB WHERE (SiteName=? AND Row=? AND Col=? AND Direction=?)"))
- {
- $stmt->bind_param("ssss", $coresite, $rowx, $columnx, $directionx);
- $stmt->execute();
- $stmt->bind_result($cabinet);
- while ($stmt->fetch())
- {
- echo json_encode($cabinet).",";
- }
- $stmt->close();
- }
- else{
- $mysqli->close();
- }
- <?php
- $mysqli = new mysqli("x", "w", "y", "z");
- $coresite = "Abbasya";
- $rowx = "103";
- if($stmt = $mysqli->prepare("SELECT DISTINCT Col FROM CAB WHERE (SiteName=? AND Row=?)"))
- {
- $stmt->bind_param("ss", $coresite, $rowx);
- $stmt->execute();
- $stmt->bind_result($Col);
- while ($stmt->fetch())
- {
- echo json_encode($Col).",";
- }
- $stmt->close();
- }
- else{
- $mysqli->close();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement