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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -