Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/03/2006, 06:40
silverrr111
 
Fecha de Ingreso: julio-2004
Mensajes: 45
Antigüedad: 19 años, 9 meses
Puntos: 0
Me da un error cuando hago el Mysql error

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/webcindario/caf/noticies/borrar.php on line 10

este es el script de noticias.php
Código PHP:
<body>
<?php
include ("conexion.php");
$selec mysql_query("SELECT * FROM noticias ORDER BY id DESC");
while (
$row mysql_fetch_array($selec)) {
?>
    <table width="45%" border="1" cellspacing="0" cellpadding="0">
    <tr>
    <td><h3><?=$row[titulo]?></h3></td>
    </tr>
    <tr>
    <td><h5><?=$row[nom]?></h5></td>
    </tr>
    <tr>
    <td><?=$row[noticia]?></td>
    </tr>
    <tr>
    <a href="borrar.php?id=<?=$row[id]?>">Esborrar</a>
    </tr>
    </table><br />
<?
    
}
?> 
</body>
Y este el de borrar.php
Código PHP:
<?php
  $id
=$_POST['id'];
  include (
"conexion.php");
  
//echo $id
  //mysql_query("DELETE FROM noticias WHERE id='$id'",$connect) or die(mysql_error());

  
mysql_query("DELETE FROM noticias WHERE id='$id'",$connect);
  
header("location: noticias.php");
?>