Posts by Helder Ferrari • 75 points
11 posts
-
0
votes1
answer18
viewsQ: Select Join with last Mysql record
Good morning, I’m having trouble doing this search in mysql: I would like to get all active users with their last trips (last registration): Command used: SELECT u.id, t.user_id, u.name, u.status,…
mysqlasked Helder Ferrari 75 -
3
votes0
answers467
viewsQ: Call to a Member Function cadastrarDados() on null - Laravel
Good morning to all, I am developing an application in Laravel 5.6 using PHP 7.2, I am having problems using DI(dependency Injection) in the constructor, since when creating the object manually the…
-
0
votes1
answer48
viewsA: Osticket maintenance in PHP
# points to a div, check the directory, as it is probably pointing to the tickets/status/ open path.
phpanswered Helder Ferrari 75 -
-2
votes3
answers945
viewsA: Register user with Laravel
Good afternoon, in this case would not be perfil_id in place of User_id? In the details it seems that Voce is passing the null value in user_id: 'users_id field does not have a default value' Field…
-
1
votes1
answer27
viewsA: Disable button after redirect
Good afternoon, I believe that for this case, Voce should store the result of database operation, something like this: if($var->save()){ $auxiliar = true; } Before sending to the next form,…
-
0
votes2
answers26
viewsA: If variable is blank replace
Good night, Before calling the paragraph add an if <?php $nome = str_replace("-"," ",strtolower($arrayReturn['nome'])); if ($nome == null){ $nome = "()"; } ?> <p>Nome: <?php echo…
phpanswered Helder Ferrari 75 -
0
votes1
answer209
viewsQ: Laravel 5.6 + JWT (json web token)
Good afternoon to all, I am developing an API in Laravel and intend to use JWT(Json web Token) to perform authentication and token management. I read the documentation on GITHUB, but did not…
-
0
votes1
answer138
viewsQ: Select JOIN + AVG() - Doubt with feedback
I’m solving an exercise but I’m having problems in return: Question: Write the query that returns the supplier’s code, the supplier’s name, the number of products per supplier and the average price…
-
0
votes0
answers75
viewsQ: Categories and Subcategories do not update - PHP7
Starting in programming I am developing an application with PHP 7 and MySql based on a lost and found site, but with problems in the creation of MENU, where my base is in the picture below: I can…
-
3
votes1
answer511
viewsQ: Failed to register NULL value in database - PHP7
Good night to you all, I am a beginner and I am developing a registration system for CATEGORIES and SUBCATEGORIES in PHP7 and MYSQL; The logic I used to register Categories and Subcategories is:…
-
0
votes1
answer1300
viewsQ: Fatal error: Uncaught Error: Call to Undefined Function listarUsuarios()
I am starting in PHP and I am suffering with a problem when using the paradigm of dal. What I intend to do is just one SELECT of all users registered in mysql database and return to a page, I am…
phpasked Helder Ferrari 75