Problem pewnie błahy ale próbowałem już różne kombinacje i ciągle sypie błędami :
Kod
$id = $this->request['id'];
$result = $this -> DB -> build(array(
'select' => 'COUNT(*) as bid',
'from' => 'pg_komentarze',
'where' => 'bid = '$this->request['id']''
)
);
$result = $this -> DB -> build(array(
'select' => 'COUNT(*) as bid',
'from' => 'pg_komentarze',
'where' => 'bid = '$this->request['id']''
)
);
Parse error: syntax error, unexpected T_VARIABLE, expecting ')' in \karta\karta.php on line 35 ( linia z where )
Próbowałem 'where' => 'bid = $id', ''bid' = '$id', 'bid = '.$id.', i dalej nic..