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

Popular posts from this blog

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

c# - Update a combobox from a presenter (MVP) -