Forum » » Le coin des codeurs » » convertir une commande sql en php pour etre executée en tache cron
Posté : 24 sept. 2011 à 00:25
<?php
$link = mysql_connect("ton_serveur", "ton_login_mysql", "ton_pass_mysql");
mysql_select_db("ta_base_mysql", $link);
mysql_query("UPDATE `posts` SET `post_aff` = 0 WHERE poster_id =1493 and post_id >216028;", $link);
?>
/usr/bin/php "chemin/complet/vers/ton/script.php"
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=25178&forum=5