Why isn't this working?
Posted: Mon Jun 20, 2005 4:34 pm
I'm trying an sms service that Ifound.
A company is recieving the sms from the user and send them to my web page and the number and text is added to my web page url:
http://www.site.com/message_in.php?sms=test&nr=123
I want the number and sms to be added to my database, but my script won't add the info.
Can anyone see what's wrong in my script here?
A company is recieving the sms from the user and send them to my web page and the number and text is added to my web page url:
http://www.site.com/message_in.php?sms=test&nr=123
I want the number and sms to be added to my database, but my script won't add the info.
Can anyone see what's wrong in my script here?
Code: Select all
error_reporting(0);
require_once('Connections/connect.php');
$nr = $_REQUEST["nr"];
$sms = @urldecode($_REQUEST["sms"]);
sqlconnect();
$query = "INSERT INTO `nu_sms` (`nr`, `sms`) VALUES ('".$nr."', '".$sms."')";
mysql_query($query);
mysql_close();
echo "Your message have been added";