Posts by Bartollo • 74 points
10 posts
-
0
votes1
answer65
viewsA: Update between two tables with conditions
The error is because sgbd did not find the column in the subquery, because you renamed them to A1 and A2 and then used the origin name. Try this code : UPDATE cepdb.log_localidade A2 SET MUN_NU =…
-
0
votes2
answers967
viewsA: What happens to a SESSION when it expires in PHP or refreshes the page?
Among the options you questioned (ISSET, EMPY or IF() ). It is recommended to use if(isset($_SESSION["name"])) as the variables cease to exist, if you use EMPTY() you will be testing whether they…
-
0
votes1
answer397
viewsA: LARAVEL Validation Method PUT
You must be in trouble on the routes and maybe on the form. Check your route file to make sure that the "requests.update" route is PUT and try to make the form this way: {{ Form::open(array('url'…
-
0
votes1
answer69
viewsA: Hiding ( $Hidden ) password Laravel 7
To access the data with '->' you have to transform the array into an object. See the example of transformation: $array = ['nome' => 'João', 'email' => '[email protected]']; echo…
-
0
votes1
answer103
viewsA: How to print variable component in Laravel 7?
You need to pass as parameter of the @Component method. See if this example can help you. @component('component.pagination', ['collection' => $students, 'class' => 'student-pagination'])…
-
-1
votes1
answer46
viewsA: How to put a DIV in place of a specific word with script?
You should use the replaceWith method instead of html. See if this helps you: $('p').replaceWith( "<div>" + $('p').text() + "</div>" );
-
0
votes2
answers121
viewsA: Send date javascript format via ajax
If you have to deliver this date in YYYY-MM-DD format and have it in DD/MM/YYYY format, you can use this code to convert. var dataNascimento = new…
-
1
votes1
answer107
viewsA: Send two parameters at once via ajax
Pass an additional parameter on the date of your ajax: data: {id: $('.country').val() , sex: $('.sex').val()}, The two selected select information will be sent in html.…
-
-3
votes3
answers141
viewsA: Which HTML attribute cannot be modified?
You could generate validation keys for your inputs and log in an array, hence before submitting the form or any other action, you can check them using JS. Ex: <input id="1"…
-
1
votes1
answer86
viewsA: How to insert null values into a data list?
If your field is already NULL in the database, just remove from the array the fields you want to be null ( the q are with "=> NULL" ), Eloquent will mount the query without them and the database…