PHP and MySql trouble
Posted
by Espen Arnoy
on Stack Overflow
See other posts from Stack Overflow
or by Espen Arnoy
Published on 2010-05-30T18:01:59Z
Indexed on
2010/05/30
18:12 UTC
Read the original article
Hit count: 374
I am having trouble making this seemingly simple MySql query work. Can anyone spot the problem?
<?php
include "config.php";
$offerid = $_POST["offerid"];
$ip = $_SERVER["REMOTE_ADDR"];
mysql_query("INSERT INTO voted (offerid,ip) VALUES (".$offerid.",".$ip.")");
?>
© Stack Overflow or respective owner