Posts by Igor Henrique • 102 points
6 posts
-
0
votes1
answer299
viewsA: PHP dynamic variable name, according to another variable value
$linha = array(); //crio um laço com 50 loops, por exemplo for($i=1;$i<=50;$i++) { shuffle($cincoNumeros); $umNumero = array_slice($cincoNumeros, 0, 1); …
phpanswered Igor Henrique 102 -
1
votes1
answer61
viewsQ: Doubt about Aravel; How does he execute this code?
I’m learning about Laravel and I was intrigued to learn how part of the code works framework concerning Seeder and the question is about the code to follow: public function run() {…
-
1
votes1
answer146
viewsA: Comparison of hashes in PHP
You can’t make that comparison (or conversion) from hash. The modes to get the hash match is by having the text encrypted and checking for the two options. Depending on what you want from to query…
-
0
votes1
answer630
viewsA: How to make the return of a Query (PDO)
cannot have two Where in sql and also cannot after order by I will do mode or query by employee or by code, I recommend to you separate a method to filter by date and another by user public function…
-
0
votes1
answer35
viewsQ: function reference in php
I’m having a problem I can’t reference a method that’s within the class: Follow the code: define("LOGIN","root"); define("PWD",""); //define("DB", "pj_fatec"); define("DB", "virtual");…
phpasked Igor Henrique 102 -
3
votes1
answer539
viewsQ: mysql error with foreign key
I am creating a template but I am running into an error when I am going to create foreign MYSQL keys from a "Cannot add Foreign key Constraint" error. follows my sql. use fatec; create table aluno(…