Posts by Renê • 24 points
5 posts
-
0
votes1
answer25
viewsA: how to do how much clicking on the title goes to a full text page
Good night. This is very common for news sites, I recommend you pass the news id through a GET and create a specific page to display news. In this code that seems to me to be your home, it would…
-
0
votes1
answer57
viewsA: Function fill menu dynamically
Good night. Well, for starters you can change the for for foreach and although it did not be a bad practice or worse your code I recommend that save open and close php tags (<?php ?>) to…
-
-1
votes1
answer38
viewsA: Can’t Capture PHP Native Errors?
I always create for every application I make a Handler error to handle the errors function errorHandler($mensagem, 0, $level, $arquivo, $linha)//Transforma erros em Exceptions { if(error_reporting()…
-
0
votes1
answer95
viewsA: Loop to a select with multiple Ids
Try to loop to concatenate the Ids and then bind the query. So with the array of $Id being [0] => 23, [1] => 24 create a foreach: $ids = ''; foreach($id as $dados) { $ids .= "{$dados}, "; }…
-
1
votes1
answer65
viewsA: Slim - Trying to get Property 'password' of non-object in
I believe the problem lies in your DAO. The error must be in $usuario->senha, probably your method buscarPorEmail() is not returning an object but an array of objects. Check in your file User if…