Greetings I have a question Im working on a little php code.
The main point its to find with a process some articles from a database, it doesnt display any errors, but it doesnt show anything, right now I dont now where my mistake is, this is my code
<?php if ($db = ibase_connect('C:\xampp\htdocs\TestCompucenter\CONSULTAS2017.fdb', 'SYSDBA','masterkey')) { echo 'Si jalo'; $query= "select B.CLAVE_ARTICULO, c.INV_FIN_UNID as existencia, c.NOMBRE_ALMACEN from ARTICULOS a left join CLAVES_ARTICULOS b on b.ARTICULO_ID = a.ARTICULO_ID left join ORSP_IN_AUX_ART(a.ARTICULO_ID,'Almacén general', '01/01/2010', CURRENT_DATE, 'N', 'N') c on c.ARTICULO_ID = a.ARTICULO_ID where b.CLAVE_ARTICULO = 'TN-310M'"; $res=ibase_query($db, $query); if(!$res) {echo 'No se pueden mostrar los datos desde la consulta: $query !!'; exit;}else{ $row=ibase_fetch_object($res);} echo "CLAVE ARTICULO | EXITENCIA | NOMBRE ALMACEN |
|
|
|
$row->clave_articulo | $row->inv_fin_unid | $row->nombre_almacen |
I know the sql syntax work this is a demo with an ID thats currently in the database, thanks in advanced