Using $this when not in object context
- by Ken
I'm creating a function to show blog's. So I made a show blog function but it keeps giving "Using $this when not in object context" error
Class Blog{
public function getLatestBlogsBig($cat = null){
$sqlString = "SELECT blog_id FROM jab_blog";
if($cat != null)
$sqlString .= " WHERE blog_cat = " . $cat;
…