I am new to php coding for some reason my code isn't inserting anything into the table. I've been working on this problem for a few hours and I can't figure it out at all.
I use php my admin and I used that to generate a php script (not this current version of code), but that still didn't work.
<?
//data
$ID = $_GET['ID'];
$Type = $_GET['Type'];
$Name = $_GET['Name'];
$Addr = $_GET['Addr'];
$Phone = $_GET['Phone'];
$startDate = $_GET['startDate'];
$endDate = $_GET['endDate'];
$SRN = $_GET['SRN'];
//sql info
$user = $_GET['user'];
$pass = $_GET['pass'];
echo "
Hostname: $ID
Dev_Type: $Type
User_Name: $Name
User_addr: $Addr
User_Phone: $Phone
DATE_START: $startDate
Date_END: $endDate
Square Recipt Number: $SRN
";
// sql insert
$con=mysqli_connect("mysql1098.servage.net",$user,$pass,"RC_DB");
mysqli_query($con,"INSERT INTO RC_DB.Current_Rentals (Hostname,Dev_Type,User_Name,User_Addr,User_Phone,Date_Start,Date_End,STOLEN,Square_Recipt_Number)
VALUES ($ID,$Type,$Name,$Addr,$Phone,$startDate,$endDate,'0',$SRN)");
mysqli_close($con);
?>
any ideas?