Posts by Silvia Luize • 7 points
5 posts
-
0
votes3
answers364
viewsA: Image not saved in directory
From what I understand your problem is just in moving the uprated file. Try the following: $arquivo = $_FILES['arquivo']; $diretorio = '../nome_da_pasta/'; //define o caminho do diretório $arquivo =…
-
0
votes1
answer89
viewsA: Pass the primary key value of a table to a foreign table of another PHP table
Guys, I was able to solve it. The problem was not in the database, but in php. When I passed the value, I transformed the variable into an array. To make the array work, simply IN MY CASE, give the…
-
-1
votes2
answers41
viewsQ: Doubt about functions in php
A function only works if we call it in some file or it will work anyway? For example, to pass the value from one variable to another in the processing file, I know I must call the function to give…
-
0
votes1
answer89
viewsQ: Pass the primary key value of a table to a foreign table of another PHP table
I’ve used MAX(column name_name), last_insertid, and nothing works, the foreign key of the second table keeps getting value 0. public function cadastrar_teste($nr_ficha_teste, $cod_refugo_teste,…
-
-1
votes1
answer345
viewsQ: How to enter the generated id in the Insert as a foreign key from another table?
<?php include_once "./Models/Usuario.php"; include_once './Models/Login.php'; include_once './Models/Profissional.php'; include_once './Models/Cabecalho.php'; include_once './Models/Teste.php';…