I've replaced with get-url by I'm still getting a 500 internal server error.

On kannel.conf:

group = sms-service
keyword = default
#keyword-regex = .*
catch-all = yes
max-messages = 0
get-url = "http://localhost/sms.php?ORIGINATOR=%p&SMS=%a";

And the sms.php file:

<?php

mysql_connect ("localhost", "smsuser", "sms4ever") or die (
mysql_select_db ("sms");

$query = "insert into data set number='".$_GET["ORIGINATOR"]."',
msg='".$_GET["SMS"]."'";
$result = mysql_query($query);
if(!$result) die(sql_error());

?>


Where am I going wrong?





-- 
View this message in context: 
http://old.nabble.com/Save-SMS-to-database-tp32663270p32663274.html
Sent from the Kannel - User mailing list archive at Nabble.com.


Reply via email to