Posts by Lindomar • 178 points
17 posts
-
-1
votes2
answers242
viewsQ: How to separate a web system with API in domains?
Assuming I have to develop 1 app and 2 dashboards, the mobile app is powered by an api developed in php (which is managed by one of these dashboards), and the other dashboard connects to the app.…
-
1
votes0
answers45
viewsQ: How to make relationship using the result of a relationship with Eloquent
I’m having trouble making the relationship between the table produtos, opções and tipos de opções on Laravel, I can bring the products and their options using Product::with('options')->get(), but…
-
1
votes1
answer219
viewsQ: Fill modal with Vue js
The problem: I’m developing a site that has a feed with publications, each post has comments. When I click on the post comments button, I need to load a modal filled with comments and post. That…
-
3
votes3
answers953
viewsA: Select higher PHP value
Use the function max() that return the highest value and array_search() to search the array for the name of who has this number of goals. Example: $gols = array("Kraken"=>"25",…
-
1
votes1
answer56
viewsA: Vue.js build error in Laravel
The mistake was in the <button> in aria-label="{{ __('Toggle navigation') }}" the correct would be : aria-label="('Toggle navigation')"…
-
0
votes1
answer56
viewsQ: Vue.js build error in Laravel
I am getting the following error while saving the app.js file: https://imgur.com/a/akBRZ5D The arches are these: app js.: require('./bootstrap'); window.Vue = require('vue');…
-
0
votes1
answer225
viewsA: Errors in mysqli, expected parameters
Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\xampp\htdocs\rede\profile.php on line 25 Which means the function mysqli_query() expected 2 parameters and you only passed 1.…
-
0
votes2
answers797
viewsA: People my code keeps giving the error: Notice: Undefined variable: connects in C: xampp htdocs network profile.php on line 25
Are you saying that the connected variable has no assigned value. If you remove this variable and pass the code "mysqli_query("SELECT * FROM users WHERE id='$id'");" will receive the following…
-
4
votes1
answer1994
viewsA: How to resolve "Fatal error: Uncaught Error: Class 'User' not found"
The name of your class is Funcionario, so you have to instantiate the class Funcionario and not the class Usuario (that doesn’t even exist). The right thing would be: $funcionarioPiloto = new…
-
1
votes1
answer194
viewsA: help with shipping confirmation form and popup
You can use the boostrap modal to appear and the user to confirm. Below is an example using bootstrap 4: $('#confirmar').on('click', function () { $('.modal').modal('show') }) <link…
-
0
votes1
answer36
viewsA: Index undefined when downgrade
You can use isset() to check if there is index 'level' in the session. This way it will not generate an error if it does not exist. if(isset($_SESSION['nivel'])){ echo "oi logado"; } ?>…
-
0
votes1
answer51
viewsQ: Generate an error if the code entered by the user is not a valid value
I have the following code snippet: //Pedir para entrar com o código enquanto for menor ou igual a 0 do{ printf("Entre com o codigo:"); scanf("%i",&CODAUX); }while((CODAUX <= 0)) ; //Pedir…
-
0
votes1
answer36
viewsA: By clicking on my Ubmit, the php function is opening my file
The path specified in the address bar is from the file on the machine, so it does not run the file on the server. You need to use the localhost path defined by xamp. Example: localhost/cadastre.php…
-
0
votes2
answers163
viewsA: Loading Bar
Utilize beforeSend: $.ajax({ url: "sua url", beforeSend: function() { $('elemento').addClass('.show');//ativa o elemento de carregamento no html } }) .done(function( data ) {…
-
0
votes2
answers34
viewsA: Button problem
Create a class in css to hide button: .isHidden{ display: none} Add a class to identify the Uttons: Example: <button class="button-active on-default remove-row text-warning"><i=class=" fa…
-
1
votes1
answer6449
views -
1
votes2
answers47
viewsA: How to register more information in the table
A parameter in VALUES is missing. You put in a comma, but you didn’t put in the parameter