Subdomain Posts
PHP | 41 min ago
PHP | 4 hours ago
PHP | 19 hours ago
PHP | 19 hours ago
PHP | 23 hours ago
PHP | 1 day ago
PHP | 1 day ago
PHP | 1 day ago
PHP | 1 day ago
PHP | 1 day ago
Recent Posts
XML | 12 sec ago
None | 27 sec ago
None | 34 sec ago
C | 34 sec ago
None | 40 sec ago
C++ | 41 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By sas on the 10th of Feb 2010 12:33:10 AM Download | Raw | Embed | Report
  1.  function get_avisos($tipo = NULL, $n = 10)
  2.     {
  3.        $localidad = 1;
  4.        if ($tipo === 0) $tipo = ' AND aviso.tipo_aviso = 0';
  5.        elseif($tipo === 1) $tipo = ' AND aviso.tipo_aviso = 1';  
  6.          
  7.      
  8.        $query = $this->db->query(" SELECT aviso.id, aviso.detalle, aviso.titulo, aviso.tipo_aviso, aviso.nivel
  9.                                    FROM aviso
  10.                                    LEFT JOIN contacto ON contacto.localidad_id = $localidad
  11.                                    WHERE contacto.id = aviso.contacto_id
  12.                                    AND aviso.nivel > 0 $tipo
  13.                                    ORDER by aviso.id DESC
  14.                                    LIMIT 0, $n ;"
  15.                                  );
  16.        
  17.  
  18.         $tmp = $query->result_array();
Submit a correction or amendment below. [ previous version ] | [ difference ] | Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: