<?php ... if($user = $stmt -> fetch()) { $stmt -> closeCursor(); return $user; } else { $stmt -> closeCursor(); return 0; } } ?>
Obecnie mam to tak:
<?php ... if( $user = $db -> FetchObject() ) { return $user; } else { return 0; } } ?>
No ale to nie działa. Co robię źle ?