Boris 3430
| Posté : 24-09-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;", < /span>$link);
?>
Tout simplement.
Et dans ta tâche cron, la ligne de commande :
/usr/bin/php "chemin/complet/vers/ton/script.php"
|