pues no funciona :(
te paso la pagina y el codigo
http://usuarios.lycos.es/miblogpersonal2005/ Código PHP:
<html>
<head>
<title>mostrar,añadir, borrar registros</title>
</head>
<body>
<p>.</p>
<p>.</p>
<p>.</p>
<h3>Registros</h3>
<?php
$conexion=mysql_connect('localhost','miblogpersonal-2005','','miblogpersonal2005_es_db');
if($conexion==FALSE){
echo 'error en la conexion mysql';
}
$result=mysql_query('SELECT id,nombre,descripcion FROM genero', $conexion );
if($result==FALSE){
echo 'error en la conexion con pruebas';
}
?>
<table border=1 cellspacing=0 cellpadding=0 >
<tr>
<td><strong>Id</strong></td>
<td><strong>Nombre</strong></td>
<td><strong>Descripción </strong></td>
</tr>
<?php
while($row=mysql_fetch_array($result)){
echo '<tr>';
?>
<td><?php echo $row['id']; ?> </td>
<td><?php echo $row['nombre'];?></td>
<td><?php echo $row['descripcion'];?></td>
<?php
echo '</tr>';
}
?>
</table>
<!--segunda parte mostramos registros en forma de menu desplegable-->
<p><h3>Borrar registros</h3>
<form method="post" action="<?=$_SERVER['PHP_SELF']?>">
<select>
<?php
while($row=mysqli_fecth_array($result)){
?>
<option value="<?php $row['id']?>"><?=$row['id']?></option>
<?php
}
?>
</select>
<input type="submit" value="borrar" name="enviar">
</form>
</body>
</html>