php - mysqli doesn't insert into database -


good day,

i using code below:

$stmt = $dbh->prepare("insert blogs (name, subject, message) values (?,?,?)"); $stmt->bind_param('sss',$name, $subj, $msg); 

it works without errors , page responding fine.

problem is, don't think it's inserting database?

could please advise causing this?

thanks

this prepare statement , bind parameters.. aren't have execution part?

$stmt->execute(); 

this guide solution

http://php.net/manual/en/mysqli-stmt.bind-param.php


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -