tengo otro problema, en el panel una parte para agregar noticias bueno como cada noticia tiene su autor, entonces cree una tabla con los autores y necesito q el formulario de noticias me cargue todos los autores y yo vaya agregando, pero solo me esta cargando el ultimo....
aqui va el codigo...
Código PHP:
<?php
include ('conexion.php');
$query = ("SELECT * FROM autores_noticias ORDER BY id");
$result = mysql_query( $query );
if( !is_resource( $result ) ) {
die("Problema con el Query:".mysql_error());
}
while( $datos = mysql_fetch_array( $result ) ) {
echo '<div id="Layer1" style="position:absolute; width:539px; height:115px; z-index:1; left: 5px; top: 25px;">
<form name="form1" method="post" action="adminis/procesa_noticia.php">
<table width="314" border="0" align="center" class="Estilo1">
<tr>
<td width="94">Titulo</td>
<td width="144"><input name="titulo" type="text" id="titulo" size="50"></td>
<td width="62"><input type="submit" name="Submit2" value="Agregar"></td>
</tr>
<tr>
<td>Fecha</td>
<td><input name="fecha" type="text" id="fecha" size="50"></td>
<td> </td>
</tr>
<tr>
<td valign="top">Contenido</td>
<td><textarea name="contenido" cols="46" rows="10" id="contenido"></textarea></td>
<td> </td>
</tr>
<tr>
<td>Autor</td>
<td>[B]<select name="autor" size="1" id="autor">
<option>'.$datos[nombre].'</option>
</select>[/B]</td>
<td> </td>
</tr>
</table>
</form>
</div>'; }?>
salu2