Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require '../config.php';
- require '../connect.php';
- $sql = "SELECT `indirstab` FROM `operatori`";
- $result = mysqli_query($link,$sql);
- $data=array();
- while($row = mysqli_fetch_assoc ( $result )) {
- if(json_encode($row)!=false){
- array_push($data,$row);
- } else {
- echo "Errore stringa: ".$row['indirstab'];
- }
- }
- $stringa = json_encode($data);
- if($stringa!=false){
- echo $stringa;
- } else {
- echo "Errore";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement