Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionMsgBox PostInfo("www.tonsite.com (sans http://)", "/tapage.php", "champ1=xxx&champ2=yyy")
<?php //Fonctionne avec une table "Compteurs" avec comme champ "Connexions" de type int. if (isset($_POST['Action'])) { switch ($_POST['Action']) { case 'ajoute': $cmd = '+1'; case 'retire': $cmd = '-1'; default: die('Invalid parameter !'); } if (!mysql_connect('serveur','login','pass') || !mysql_select_db('db')) die('Can\'t connect to db'); mysql_query("UPDATE Compteurs SET Connexions=Connexions$cmd;"); mysql_close(); } ?>
PostInfo "www.tonsite.com", "/tapage.php", "Action=ajoute" PostInfo "www.tonsite.com", "/tapage.php", "Action=retire"