Posted By

alezzzzz on 11/03/14


Tagged

mysqli


Versions (?)

SELECT Query


 / Published in: PHP
 

To be parsed as JSon

  1. $sql = 'SELECT * FROM votos WHERE id_usuario = "'.$_POST[id].'" LIMIT 5';
  2. if(!$resultado = $db->query($sql)){
  3. ie('There was an error running the query [' . $db->error . ']');
  4. }
  5. $array = array();
  6. echo json_encode($salida);

Report this snippet  

You need to login to post a comment.