Posts by lrt1990 • 41 points
4 posts
-
0
votes2
answers73
viewsA: How do I make sure I can’t book the same Equipment for the same day and time?
Your second "if" is just comparing the contents of the variable $sql with some string, in this case "SELECT * from reservas where id_equipamento= '" . $atride . "' AND horario='".$hora."' AND…
-
0
votes2
answers297
viewsA: Return after sending email
The call to the method send() will return the number of emails that were delivered or 0 in case of failure. You can do something like this: $mail = Mail::to('[email protected]')->send(new…
-
1
votes0
answers35
viewsQ: Content size of a variable from a request
I have a web application developed in Laravel 5.0, which receives a request via POST from another application. The data sent is a JSON with a relatively large amount of information, and when I get…
-
3
votes1
answer338
viewsA: How to handle JSON coming from PHP with Javascript
I made a change to your code, just the function myFunction() because in your JSON the array is inside produtos and that’s what you have to iterate on for loop: function myFunction(arr) { var out =…