Ver Mensaje Individual
  #12 (permalink)  
Antiguo 21/12/2008, 16:09
guzmi_1989
 
Fecha de Ingreso: octubre-2008
Mensajes: 46
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: ayuda con bot

estoy echo un lio ya jejeje

aora tnego codigo asi

Código PHP:
<html>
<?php
include ('config.php') ;
$query mysql_query("SELECT * FROM torrents_descargas");
while(
$row mysql_fetch_assoc($query)) {
  
$file file_get_contents($row['eunico']);
  if(
stristr($file'Invalid')) mysql_query("UPDATE torrents_descargas status = 0 WHERE id = ".$row['id']." ");
  else 
mysql_query("UPDATE torrents_descargas status = 1 WHERE id = ".$row['id']."")or die(mysql_error($conectar))or set_time_limit();;
  

}

?>
yme da este error

Código PHP:
You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '= 1 WHERE id = 5701' at line 1