Posts by Willians Okamoto • 31 points
3 posts
-
1
votes1
answer564
viewsA: Search the database via AJAX c/ jQuery
To do data searches via AJAX c/ jQuery you can use the following function $.ajax. $(document).ready(function(){ $("#cpf").blur(function(){ //get input value var cpf = $('#cpf').val(); $.ajax({ type:…
-
0
votes1
answer123
viewsA: Save variables in PHP PDO foreach cycle
You can keep the objeto or array() within the $_SESSION thus: $_SESSION['jogo'][$id] = $row; echo '<link href="home/vendor/bootstrap/css/bootstrap.min.php" rel="stylesheet">'; echo '<link…
-
2
votes2
answers67
viewsA: How to calculate departure time based on input time
To make calculations of hours with php I use the function strtotime(); Each parameter of this function uses the default server time zone. $duration = array('hours' => 9, 'minutes' => 48);…
phpanswered Willians Okamoto 31