Guest User

PHP Municipios

a guest
Dec 6th, 2019
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $comarca = $_GET['comarca'];
  3. $conexion = new mysqli("localhost", "root", "", "cadiz");
  4. $conexion->query("set names utf8");
  5. $sql = "select * from municipio where comarca_id = $comarca order by nombre";
  6. $resultado = $conexion->query($sql);
  7. echo json_encode($resultado->fetch_all(MYSQLI_ASSOC));
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.