Posts by Joab Nunes • 122 points
5 posts
-
4
votes2
answers959
viewsQ: Jquery hover function in dynamic elements
Is there any way to use the hover with jQuery in dynamically created selects options. I tried to use the function on() and the live() but it didn’t work out. I tried so: $(document).on('hover',…
-
1
votes2
answers1972
viewsQ: Route does not execute controller method
Good afternoon. I have a problem with my php code developed in Laravel 4. I have a Javascript function that executes an action using $.post and if successful, calls another Javascript function, this…
-
2
votes1
answer783
viewsA: Two conditions in SQL query with Laravel 4
You can do two functions. The second function takes as parameter the result of the first query. DB::table('veteranos')->where('ra', '2300') ->where(function($query){ return $query…
-
0
votes1
answer194
viewsQ: Refresh a div with sql data without reloading the page
Hello guys I’m making a site in php, in which there is a section of buttons. When I select a button, you should do a BD search and with the result, update a div under the buttons, without reloading…
-
3
votes1
answer1839
viewsQ: How to close a database connection using PDO?
I’m new to PHP development and my app uses a method to open a database connection in Mysql, I am wanting to update and display the records. I need to use some method to close the connection, like:…