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...
By sas on the 10th of Feb 2010 12:33:10 AM
Download |
Raw |
Embed |
Report
function get_avisos($tipo = NULL, $n = 10)
{
$localidad = 1;
if ($tipo === 0) $tipo = ' AND aviso.tipo_aviso = 0';
elseif($tipo === 1) $tipo = ' AND aviso.tipo_aviso = 1';
$query = $this->db->query(" SELECT aviso.id, aviso.detalle, aviso.titulo, aviso.tipo_aviso, aviso.nivel
FROM aviso
LEFT JOIN contacto ON contacto.localidad_id = $localidad
WHERE contacto.id = aviso.contacto_id
AND aviso.nivel > 0 $tipo
ORDER by aviso.id DESC
LIMIT 0, $n ;"
);
$tmp = $query->result_array();
Submit a correction or amendment below.
[ previous version ] | [ difference ] | Make A New Post