php - How to save a comma within text into a MySQL database -
i have form users can save text mysql database. i'm using prepared statement insert data can't understand why unable insert text has comma. when retrieve $detail string echoe's out ends hits comma. missing? thanks.
example: want insert statement, ok.
prints out: want insert statement
my code (simplified)
$detail=htmlentities($_post["detail"], ent_quotes); $id=$_post["id"]; $stmt = $db_conx->prepare('update tbl_uploads set detail=? id=?'); $stmt->bind_param('ss',$detail,$id); $stmt->execute(); if ($stmt->execute()) { //true echo'success'; }else{ echo "error"; }
Comments
Post a Comment