|    
			
				06/12/2013, 09:15
			
			
			  | 
  |  | 
  |  Respuesta: hacer un select a una base de datos  
  gracias por la ayuda consigui crear esto me sale todo bien (EL AUTOR -EL TEMA-LA FECHA-EL MENSAJE) pero la imagen almacenada en la tabla no se mostrapodrias ayudarme en esto
 gracias
 este es el codigo
 
 <!doctype html public "-//W3C//DTD HTML 4.0 //EN">
 <html>
 <head>
 <title>Title here!</title>
 </head>
 <body>
 
 <br>
 <table align='center' border='0' bordercolor="#FFffff" >
 <tr bgcolor='#666666'>
 <td>
 <p align="center"><a href='index.php'><font size='4' color='white'>Volver Foro</font> </a></p>
 </td>
 <?$pp=$var;?>
 <td>
 <? print ("<p align='center'><a href='altamensaje.php?var1=$pp'><font size='4' color='white'>Responder Mensaje</font> </a></p>");?>
 </td>
 <td>
 <p align="center"><a href='altatema.php'><font size='4' color='white'>Agregar Nuevo Tema</font> </a></p>
 </td>
 </tr>
 <?php
 
 
 
 
 
 
 
 
 if ($abierto = mysql_connect ("localhost","root","7777777")){
 
 $leer = "SELECT id,tema,autor,mensaje,fecha,ruta,descripcion FROM datos WHERE Padre=$var";
 
 $datos = mysql_db_query ("mi base",$leer);
 
 print("<table align='center' width='50%' border='0'>");
 
 while ($fila = mysql_fetch_array ($datos)) {
 
 print ("<tr><td ><font size='4' color='white'>Autor :</font></td><td > ".$fila[1]."</td></tr>
 <tr><td ><font size='4' color='white'>Fecha : </font></td><td>".$fila[2]."</td></tr>
 <tr><td ><font size='4' color='white'>E-mail : </font></td><td>".$fila[3]."</td></tr>
 <tr><td ><font size='4' color='white'>Mensaje : </font></td><td>".$fila[4]."</td></tr>
 <tr><td ><font size='4' color='white'>imagen : </font></td><td>".$fila[5]."</td></tr>
 
 
 
 <tr ><td colspan='2'><hr></td></tr>");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 }
 print ("</table>");
 } else {
 print ("No se puede conectar. Intente nuevamente");
 }
 ?>
 <hr>
 </body>
 </html>
 
 
 pero me sale un error
 
 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\foro\listahijos.php on line 39
 
 
 gracias
     |