developpeur 24581
| Posté : 16-07-2003 17:38
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 |