For a feedback form that will upload user comments to a MySQL table, I don’t know what type of bind_param to use for user-provided feedback text (field type MySQL = text)
function sql_ins_feedback($dtcode,$custip,$name,$email,$subject,$feedback) { global $mysqli ; if($stmt = $mysqli->prepare("INSERT INTO feedback (dtcode,custip,name,email,subject,feedback) VALUES (?,?,?,?,?,?)")) { $stmt->bind_param("ssssss", $dtcode,$custip,$name,$email,$subject,$feedback); $stmt->execute() ; $stmt->close() ; } }
OR THAT?
$stmt->bind_param("sssssb", $dtcode,$custip,$name,$email,$subject,$feedback);
So, is the blob type the correct bind_param type for the text field?
What is the size limit for type bind_param ("s")?
Is there anything else that needs to be done when using bind_param ("b")? The manual (and something else that I read somewhere / once) suggests blob types are handled differently - all I need to know?
thanks