Bueno insertar lo hace perfectamente, asique te super agradezco la mano, ahora tengo este otro php que es el que en teoria me listaria mis noticias y en la cual yo deberia poder aprobarlas.
Creo que hay algo que estoy haciendo muy mal y no logro deducir el porque. Mira te dejo el php a ver si me puedes seguir ayudando con esto.
De mas esta decir nuevamete gracias
Código PHP:
<?PHP
require_once('config.php');
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
$db = mysql_select_db(DB_DATABASE);
$result= mysql_query("select * from noticia") or die('Error: '.mysql_error());
?>
<span class="style13">Registro de Personas Fisicas con Deuda</span></p>
<p> </p>
<table width="897" border="0" align="center" cellpadding="2" cellspacing="0">
<tr bgcolor="#6699CC">
<td><div align="center" class="style14"><span class="style15 style3 style4">ID</span></div></td>
<td><div align="center" class="style14"><span class="style15 style3 style4">USUARIO</span></div></td>
<td><div align="center" class="style14"><span class="style15 style3 style4">NOTICIA</span></div></td>
<td><div align="center" class="style14"></div></td>
<td><div align="center" class="style14"></div></td>
<td><div align="center" class="style14"></div></td>
<td><div align="center"><span class="style6"><span class="style14"></span></span></div></td>
<td><div align="center"><span class="style6"><span class="style14"></span></span></div></td>
<td><div align="center"><span class="style6"><span class="style14"></span></span></div></td>
</tr>
<?php
while ($row = mysql_fetch_array($result)){
echo"<tr>";
echo"<td><div align='center'><span class='style3'>" .$row['id_pf']. "</span></div></td>" ;
echo"<td><div align='center'><span class='style3'>" .$row['usaurio']. "</span></div></td>" ;
echo"<td><div align='center'><span class='style3'>" .$row['noticia']. "</td>" ;
echo"<td ><div align='center'><span class='style2'><a href='eliminar_noticia.php?id=" .$row['id_pf']. "'>ELIMINAR</a></span></div></td>";
echo"<td ><div align='center'><span class='style2'><a href='modifica_noticia.php?id=" .$row['id_pf']. "'>VER</a></span></div></td>";
echo"<td ><div align='center'><span class='style2'><a href='aprobar_noticia.php?id=" .$row['id_pf']. "'>APROBAR</a></span></div></td>";
echo" </tr>";
}
?>
</table>
<p class="style5">| <a href="index.php">Inicio</a> |</p>
</form>