Saturday 15 March 2014

php - Working of mysqli, what query returns after execution -



php - Working of mysqli, what query returns after execution -

i learning php,pls help here code lines

$connection =new mysqli($host,$user,$password,$db) ; $query="select * erp_comments project_id = '525037b313b43' "; $result=$connection->query($query); if($result->num_rows) { $aol=$result->fetch_object(); } echo $aol->column_name;

program working correctly want know

1.what $result , contains.how working have row database in $aol

if query successful $result mysqli_result object.otherwise false fetch_object method returns current row of result set object. $aol contains current row object.

php mysqli

No comments:

Post a Comment