note 91234 deleted from mysqli-stmt.bind-result by danbrown
| From: | danbrown@php.net | Date: | Mon, 01 Jun 2009 13:05:18 +0000 |
| Subject: | note 91234 deleted from mysqli-stmt.bind-result by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156247@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
@atulkashyap1: that code is disgusting...
<?php
function extracting(){
$query="SELECT topic, detail, date, tags
FROM updates
ORDER BY date DESC
LIMIT 5 ";
if($stmt = $this->conn->prepare($query)) {
$stmt->execute();
$stmt->bind_result($updates[0],$updates[1],$updates[2],$updates[3]);
$i=0;
while($stmt->fetch()){
$rows[] = $updates;
}
return $rows;
$stmt->close();
}
}
?>