Hello All,
Does anyone use sc_sql_protect(Value, “Type”, “Connection”)?
What are the types allowed?
“varchar” doesn’t seem to work (not sure if it makes sense to even use that) and the code below inserts hello into the database despite not being a date:
$data = "hello";
sc_exec_sql("insert into debug (dump1) values (".sc_sql_protect($data, 'date').")");