Hi all, having some trouble working out whats going wrong here, don't get no errors to work from so I am stuck!
Why is this NOT storing in the table? I have other code using the execution function and working, but this is failing but no errors. Please help!
SQL Passing
SQLExecute("
INSERT INTO `dbleads`.`offer`
(`Username`,
`Password`,
`PWSalt`,
`FullName`,
`Email`,
`Phone`,
`Mobile`,
`CompanyName`,
`CompanyABN`,
`Street`,
`Suburb`,
`State`,
`Postcode`,
`BStreet`,
`BSuburb`,
`BState`,
`BPostcode`,
`Comment`,
`AgreeTC`,
`TimeStamp`)
VALUES
(`$unop`,
`$pwop`,
`$salted`,
`$fnop`,
`$emailop`,
`$phoneop`,
`$mbop`,
`$cnameop`,
`$cabnop`,
`$streetop`,
`$suburbop`,
`$stateop`,
`$postcodeop`,
`$Bstreetop`,
`$Bsuburbop`,
`$Bstateop`,
`$Bpostcodeop`,
`$commentop`,
`$AgreeTC`,
`$Timestamp`);
");
Connection:
function SQLExecute($sqlstring){
// CONNECTION
$mysqli = new mysqli(HOST, USER, PASSWORD, DATABASE);
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$mysqli->query($sqlstring);
/* close connection */
$mysqli->close();
}