I am trying to insert a string from my web application into the database I've connected to.
String is passed from JavaScript to PHP using AJAX perfectly fine, but when the insert is executed, the string cuts off whatever is after the "<" or ">" operators.
example string: "Return to doctor <= 7 days after surgery"
what is inserted now: "Return to doctor "
desired insertion: "Return to doctor <= 7 days after surgery"
This is the code I have right now:
$string = $_POST['string'];
$sqlInsert = "UPDATE table set string = ? where date = ?";
$run = odbc_prepare($conn, $sqlInsert);
odbc_execute($run, array($string,$date));
this insertion works great for other strings without great than or less than operators