website logo
Auteur
avatar
developpeur

Forum » » Le coin des codeurs » » Pb sondage


Posté : 16 juil. 2003 à 17:38 icone du post

alors ton script doit-être :

<?php
require ("config.inc.php");
mysql_connect("free.sql.fr","xxxxx","xxxxx");
mysql_select_db("xxxxx");
$ip = $REMOTE_ADDR;
$sql = "INSERT INTO (vote,ip) VALUES (\"$vote\",\"$ip\")";
mysql_query($sql);
header(location:"$HTTP_REFERER"); (Ligne 23)
mysql_close();
?>

sinon cela ne marchera pas

Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=6691&forum=5