Posts by Felipe Mascarenhas • 49 points
5 posts
-
0
votes1
answer38
viewsA: I make a query in the database through concatenations in my query and returns empty
The problem is in single double quotes at the same time, according to the code below. if(!empty($nome_paciente)){ $filtrostring[] = 'nome LIKE :nome_paciente"'; } The correct way to work is to put…
-
-2
votes1
answer38
viewsQ: I make a query in the database through concatenations in my query and returns empty
I make my query in the bank with the following function and is not returning anything. function pesquisarPaciente2($nome_paciente = "", $nascimento_paciente = "", $id_paciente = ""){ global $pdo;…
-
4
votes3
answers459
viewsQ: Store values in matrices
I am using codeblocks, I am beginner in programming, starting with C, on account of college. The error is this: In the part of the code where it stores the value of the average of the student, only…
-
0
votes1
answer369
viewsA: I am unable to load the classes using spl_autoload_register
I found out what the problem actually was, the file name was core.php whereas the class name was Core() that is, the file name was different from the class name, from the moment I put the two as the…
-
1
votes1
answer369
viewsQ: I am unable to load the classes using spl_autoload_register
I’m trying to load a class that is in another folder in the core.php file and I’m not getting it My browser informs this message Fatal error: Uncaught Error: Class 'Core' not found in…