|    
			
				29/01/2012, 09:48
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: enero-2012 
						Mensajes: 10
					 Antigüedad: 13 años, 9 meses Puntos: 0 |  | 
  |  Warning: mysql_fetch_assoc():  
  cuando entro en este archivo php:
 <?php
 // conexión a mysql
 require("conexion.php");
 require("funciones.php");
 // consulta de registros
 $query = "SELECT * FROM empresa ORDER BY nombre ASC";
 $queEmp = mysql_query($query, $conexion);
 ?>
 <html>
 <head>
 <title>Listado de Empresas</title>
 </head>
 <body>
 <table>
 <?php while ($rsEmp = mysql_fetch_assoc($quEmp)) { ?>
 <tr>
 <td><?php echo $rsEmp['nombre']; ?></td>
 <td><?php echo $rsEmp['direccion']; ?></td>
 <td><a href="editar.php?id=<?php echo $rsEmp['id']; ?>">Editar</a></td>
 <td><a href="#" onclick="delEmpresa(<?php echo $rsEmp['id']; ?>);">Eliminar</a></td>
 </tr>
 <?php } ?>
 </table>
 <script type="text/javascript">
 function delEmpresa(id) {
 if (window.confirm("Aviso:\nDesea eliminar el registro seleccionado?")) {
 window.location = "delete.php?action=del&id="+id;
 }
 }
 </script>
 </body>
 </html>
 
 me da el siguiente error:
 
 Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/juankar/public_html/bases/eliminar_registro.php on line 29
 
 no tengo ni idea de php, me podeis ayudar?
 
 gracias.
     |