Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/05/2010, 16:14
trafico10
 
Fecha de Ingreso: abril-2005
Mensajes: 62
Antigüedad: 19 años
Puntos: 1
Respuesta: varible indefinida

hola amigo muchas gracias por responder bueno te dare hasta donde e llegado a hacer mi aplicacion

aparte de la hoja index que esta arriba que me tiene loco por no saber como hacer esto esta la pagina cabecera.php
como veras abajo pues se supone que estoy llamando a esta pagina con el include y asi se vea en el index.php

<body>
<table width="779" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%">&nbsp;</td>
<td width="32%"><img src="http://www.forosdelweb.com/f18/images/logo.jpg" width="210" height="117" /></td>
<td width="60%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="64%">&nbsp;</td>
<td width="36%"><img src="http://www.forosdelweb.com/f18/images/tit.jpg" width="186" height="38" /></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25%">login:</td>
<td width="69%" class="hora"><strong>data:</strong>
<?php
$dia_de_semana = array("domingo", "lunes", "martes", "miercoles", "jueves", "viernes", "sabado");
$num_dia = date('w');
$dia_extenso = $dia_de_semana[$num_dia];
echo $dia_extenso. "," .date("d/m/Y");?>
- <b>Hora:</b>
<?php echo date("H:i");?>
- <b>IP:</b>
<?php echo getenv("REMOTE_ADDR");?>
</td>
<td width="5%">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
</table></td>
<td width="3%">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="http://www.forosdelweb.com/f18/images/menu1.gif" width="758" height="27" /></td>
</tr>
</table>
</body>
</html>


ademas tengo esta otra que es la pagina menu.php

<body>
<table width="200" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="38">&nbsp;</td>
<td width="123">&nbsp;</td>
<td width="39">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><table width="178" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="http://www.forosdelweb.com/f18/images/admin_menu.gif" width="178" height="31" /></td>
</tr>
<tr>
<td><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12%">&nbsp;</td>
<td width="88%" valign="top">
<a href="categoria.php"> Categorias </a><br />
<a href="subcategoria.php"> Subcategorias </a><br />
<a href="producto.php"> Productos </a><br />
<a href="clientes.php">Clientes </a><br />
</td>
</tr>
</table></td>
</tr>
</table></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>

y esta otra que es el footer.php

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><img src="http://www.forosdelweb.com/f18/images/img_inf.gif" width="758" height="20" /></div></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>


eso es todo lo que hasta ahora llevo haciendo y bueno la conexion.php

<?php

$servidor = "localhost";
$usuario = "root";
$contraseña = "";

$con = mysql_connect($servidor,$usuario,$contraseña) or die("no fue posible conectarse al servidor de base de datos");
mysql_select_db("carro_compras",$con) or die("no fue posible conectarse al banco de datos");
?>

espero me pueda yudar alguien un saludo y estare esperando sus respuesta gracias