Last active
December 26, 2015 11:19
-
-
Save ricardosiri68/7143214 to your computer and use it in GitHub Desktop.
Quiero listar los registros de la tabla REVISTAS (en este momento solo 1 registro) y al ejecutar la consulta me carga los registros de la tabla SECTORES más el registro de la tabla REVISTAS. Como les digo, solo necesito el registro de la tabla REVISTAS. Qué estoy haciendo mal???
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$query = " | |
SELECT | |
r.* | |
FROM | |
revistas r; | |
"; | |
$cs=$sql->getDatos($query); | |
var_dump($cs); | |
/* | |
array (size=5) | |
0 => | |
array (size=2) | |
'id' => string '1' (length=1) | |
'nombre' => string 'Bolivia - Bochica' (length=17) | |
1 => | |
array (size=2) | |
'id' => string '2' (length=1) | |
'nombre' => string 'Ciudadela Colsubsidio - Cortijo - Quintas de Santa Bárbara' (length=59) | |
2 => | |
array (size=2) | |
'id' => string '4' (length=1) | |
'nombre' => string 'Hayuelos - Capellania - Modelia Occidental' (length=42) | |
3 => | |
array (size=2) | |
'id' => string '3' (length=1) | |
'nombre' => string 'Villas de Granada - Gran Granada' (length=32) | |
4 => | |
array (size=5) | |
'id' => string '1' (length=1) | |
'id_sector' => string '2' (length=1) | |
'descripcion' => string '2. Ciudadela - Agosto 2013' (length=26) | |
'estado' => string 'Activo' (length=6) | |
'nombre' => string 'Ciudadela Colsubsidio - Cortijo - Quintas de Santa Bárbara' (length=59) | |
*/ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment