Gracias por las respuestas
Cita:
erorres<?php
define('MODULO_DEFECTO', 'home');
define('LAYOUT_DEFECTO', 'desing1.php');
define('MODULO_PATH', realpath('./aw_modulos/')); //carpeta de modulos
define('LAYOUT_PATH', realpath('./aw_layout/')); //carepta de layout (diseños)
$result=mysql_query("SELECT * FROM modulos");
//$row = mysql_fetch_array($result);
while($row = mysql_fetch_array($result)){
$conf['$row[Y19038]'] = array('archivo' => '$row[Y19037]','layout' => '$row[Y19039]');
}
?>
define('MODULO_DEFECTO', 'home');
define('LAYOUT_DEFECTO', 'desing1.php');
define('MODULO_PATH', realpath('./aw_modulos/')); //carpeta de modulos
define('LAYOUT_PATH', realpath('./aw_layout/')); //carepta de layout (diseños)
$result=mysql_query("SELECT * FROM modulos");
//$row = mysql_fetch_array($result);
while($row = mysql_fetch_array($result)){
$conf['$row[Y19038]'] = array('archivo' => '$row[Y19037]','layout' => '$row[Y19039]');
}
?>
Cita:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\web\imagentop\www\erp\conf.php on line 10
Notice: Undefined index: archivo in D:\web\imagentop\www\erp\index.php on line 48
Notice: Undefined index: archivo in D:\web\imagentop\www\erp\index.php on line 48