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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -