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 syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 1 WHERE id = 5701' at line 1