Hello, I'm just starting off in php, and I downloaded a script just to learn what things do and play around with it a little bit.
I got to a string, and am having some difficulty figuring out how it fully works.
$count = $db->GetOne("SELECT COUNT(*) FROM `{$tables['link']['name']}` WHERE `STATUS` = '2' AND `CATEGORY_ID` = ".$db->qstr($id)." {$expire_where}");
A couple things in there that I don't understand what they do is
->
.$db->qstr($id). // is the variable $db supposed to be assigned somewhere else in the script? is qstr a default php command, or is that a custom function? and what exactly does -> do?
Thanks in advance for your help!!