Posts by Luhan Salimena • 323 points
27 posts
-
1
votes1
answer222
viewsQ: Validation does not return array with errors
I’m trying to use the validation of the Laravel to validate a form, but I’m not getting the array of errors Controller use Illuminate\Http\Request; class Curriculos extends Controller { public…
laravelasked Luhan Salimena 323 -
0
votes1
answer392
viewsQ: How to make Foreign Keys using Migrations Laravel
I’m trying to relate one field to another using Migrations this way: But when doing foreign key in Migrations this way: Migration Permission: Schema::create('permissions', function (Blueprint…
-
0
votes1
answer66
viewsQ: How to divide items with each X items
I’m using PHP to receive the data from the server but I want to make every 7 items the div is closed and open a new but I’m not getting. Example: <div class='grupo'> <item> <item>…
phpasked Luhan Salimena 323 -
0
votes1
answer36
viewsQ: How to select and assign the quantity
I’m trying to use mysql to select two tables and assign the number of rows to a field for example I have two tables: Grupo, Pessoa I want to make a Join in the Group table showing the number of…
-
0
votes1
answer60
viewsQ: Problem with Array for Json
I made a simple request to the database and am trying to pass this data to a json but a part is being duplicated in JSON PHP: $query = "SELECT * FROM UNIFORMS"; $result =…
phpasked Luhan Salimena 323 -
1
votes1
answer205
viewsQ: "Col is Undefined" when use table.rows.add
I’m trying to get a json from a requisition AJAX to insert it in the table but whenever I execute table.rows.add Table Code: <table id="datatables" class="table table-striped table-no-bordered…
asked Luhan Salimena 323 -
0
votes2
answers170
viewsQ: Append not working properly in a Select after AJAX request
I need to make sure that when completing the requisition AJAX the jquery insert the options in a select but when doing so options do not appear when clicking but when inspecting shows that they are…
jqueryasked Luhan Salimena 323 -
0
votes2
answers88
viewsQ: How to use Jquery functions in array?
I’m selecting a select and trying through the array to access one of the options to place it with the attribute Selected, but every time I try to use the .att("selected", "selected"); get the bug:…
jqueryasked Luhan Salimena 323 -
0
votes1
answer146
viewsQ: PHP Mailer class does not work
I’m trying to send an email by php using PHP MAILER but I always get the missing class error and no longer know what to do. Error: Fatal error: Class 'PHPMailer' not found in…
-
0
votes1
answer37
viewsQ: How to send objects to function
I’m starting with PHP POO and I’m trying to pass a class to a function. How can I do that? $usuario = new Usuario(); registraUsuario(Usuario $usuario,$conexao);…
phpasked Luhan Salimena 323 -
1
votes2
answers928
viewsQ: Maximum limit of POST
I am trying to make a video upload form but I have a problem that makes it impossible to upload because I always get the following error: Warning: POST Content-Length of 69509336 bytes exceeds the…
-
1
votes2
answers38
viewsQ: How to configure URL to center object
I made a navbar that when clicking an item it redirects to the same page for a div that has the attribute id, but the site is navbar on top of the text <li> <a…
-
1
votes2
answers1183
viewsQ: How to send form data via Javascript and redirect
I need to have my form send data to another server page for it to enter in Mysql but redirect the user to another page but receive a success message. But for some reason, the message is missing.…
-
0
votes1
answer45
viewsQ: How to make foreign table associate fields using select?
In my project I have a function in which searches all the elements of the database and still makes "categoria_id" become "categoria_nome" ordering the field in another table, but when I try to use…
-
7
votes4
answers9952
viewsQ: How to make Mysql return utf-8?
When I require information from my database containing special characters I receive " but in the grouping phpmyadmin is "UTF-8" and my website also has the goal of UTF-8 what can I do to return the…
mysqlasked Luhan Salimena 323 -
0
votes1
answer435
viewsQ: Function to dislodge through inactivity
Well, in my project when the user logs in the system performs a function that creates a Session with email from it to authenticate it during the site: Function: function logaUsuario($email) {…
phpasked Luhan Salimena 323 -
2
votes2
answers2065
viewsQ: Password_verify does not return the correct one
I’m trying to use the remote password_verify but he is not returning me the correct for example: $senha = "151201"; $hash = "dc123878c3ceb4b521c7531ecaa93b53"; if(password_verify($senha, $hash)){…
phpasked Luhan Salimena 323 -
-1
votes1
answer123
viewsQ: Mysql syntax error
I am making a form to insert data in my database but the function that does this is returning me a syntax error that I cannot find. Function function insereProduto($conexao, $nome, $descricao,…
-
0
votes1
answer50
viewsQ: Error while trying to list objects that are in the database when using Foreach();
I am making this code to capture the elements of a table in my database but while executing the code foreach I get the bug and I don’t know what to do Function to fetch data: function…
-
0
votes1
answer275
viewsQ: How to make encrypted password queries in the database?
Well, I created a function called search party that should encrypt the user’s password and compare it with the database but every time I run I get the error: Warning: mysqli_fetch_assoc() expects…
-
0
votes1
answer45
viewsQ: Error in mysql Syntax
I am making a page to list the products I have in my database, but when loading the page I get this error that I cannot solve: Warning: mysqli_fetch_assoc() expects Parameter 1 to be mysqli_result,…
-
0
votes2
answers1020
viewsA: How to open the Twitter site within an Iframe
Twitter blocks this by a configuration of their own server, sent a flag by the HTTP Reply: But Twitter provides a search API see if it helps you with something…
-
0
votes1
answer128
viewsA: Server blocks image
Just like Vanildo said, try adding a bar to the code, <img src="/repositorio/imagem_principal/140800039.jpg"> Or also try replacing the directory image with "/repositorio/140800039.jpg" Check…
-
0
votes2
answers2186
viewsA: Open a page within a page
To center, try to put this code in Div .Video { margin: 0; /* removing the default ul margin */ padding: 0; /* removing the default ul padding */ text-align: center; } <div class="Video">…
htmlanswered Luhan Salimena 323 -
1
votes1
answer95
viewsQ: How to position these elements in a List
Hello I’m making a simple product page but I’m having some difficulties in positioning the elements as well as in the print below: First I was using attributes like: Left: ?? px; bottom: ?? px; ,but…
-
1
votes0
answers243
viewsQ: How can I make my app lighter
Recently I started to create an application by Intel XDK and by test I realize that in my mobile the application runs quickly but in others it ends up giving some crashes. Could someone give me a…
-
1
votes2
answers13385
viewsA: Android Studio - non-ASCII Characters
It’s happened to me before. Review some files have in your project folder,in my case I found an image I would put in my app "testCopy.png" Delete or change the file name and so it will be solved…