
http_vars_get should not be used. Its totally outdated. You should use $_GET.
Ok so on the assumption by the end of it the GET string after the file name is
?first=1&second=2&third=3&final=4
(the 1234 can be subsituted for any pin. Then in full
PHP Code:$pin = http_vars_get['first'].http_vars_get['second'].http_vars_get['third'].http_vars_get['final'] ;
mysql_query("INSERT INTO `entrys` (`pin`) VALUES ('$pin')") or die ("mysql_error()");
Get doesnt seem to be working, hence its possible that his server could just be running an outdated php version, if thats the case http_vars_get will get the data wanted. And if its not, will work on modern installations (dispite being deprecated anyway)
It should be..
You had it wronggg.PHP Code:$query = mysql_query("INSERT INTO entrys (pin) VALUES('" . $_GET['first'] . $_GET['second'] . $_GET['third'] . $_GET['final'] . "')");
XHTML, CSS, AJAX, JS, php, MySQL.
--
HxF moderators can't read timestamps.
Want to hide these adverts? Register an account for free!