PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?
$areacode = $_GET["areacode"];
$phonenum = $_GET["phonenum"];
$provider = $_GET["provider"];
include ('providerinfo.php');
$num = $areacode . $phonenum . $to;
echo ("this is what it got $num");
//This is the MySQL Information
$username="**";
$password="**********";
$database="*****";
//This tells to connect to the MySQL Database, via the provided information above
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
//The query is to insert data into the "Info" table
$query = "INSERT INTO `txtusers` (`mobile`) VALUES ('$num')";
//$result = mysql_query($query);
mysql_close();
?>
-FlightFanatic
Attachments
error.JPG (11.33 KiB) Viewed 563 times
Last edited by Benjamin on Sun May 03, 2009 5:21 pm, edited 1 time in total.
Reason:Changed code type from text to php.