public function getITByID($itemID) {
$stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where subcategory_id=?");
$this->throwExceptionOnError();
mysqli_stmt_bind_param($stmt, 'i', $itemID);
$this->throwExceptionOnError();
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
mysqli_stmt_bind_result($stmt, $row->id, $row->library_id, $row->category_id, $row->subcategory_id, $row->image. $row->view_count);
if(mysqli_stmt_fetch($stmt)) {
return $row;
} else {
return null;
}
}
http://www.poljoprivredne-masine.com/ - imaš mašinu? Možeš da zarađuješ!