Posts by Joao Pedro • 143 points
13 posts
-
0
votes1
answer871
viewsQ: It takes time to load site with Laravel
Good evening, I’m starting with Aravel, but I’m facing too much critical delay.. I tried with two templates and both took the same time (on media), I wanted to know your opinion, because I already…
-
0
votes0
answers50
viewsQ: What is "auto casting" and how to use it?
I have the class y: class y { private $group = []; public function __construct(){ $this->group['Start'] = array( 'GET' => array( 'Home' => array( 'Method' => 'ControllerHome@index',…
phpasked Joao Pedro 143 -
0
votes1
answer158
viewsQ: Creating a route system
First good afternoon. I’m trying to create a route system in PHP. So far I have the following routes: $prefix['teste'] = array('dados' => array( 'GET' => array( 'Auth/{id}' =>…
-
0
votes1
answer95
viewsQ: How to scroll through an array the right way
Good evening guys, I’m having an immense difficulty regarding arrays... I have the following array: array(6) { [0]=> array(1) { ["cep"]=> array(2) { [0]=> string(8) "15070650" [1]=>…
-
2
votes1
answer3378
viewsQ: Mask for phone and mobile phone (8 or 9 digits) in the same textbox winforms
Good evening, I’m having trouble creating a mask that accepts both cell phone number and phone number in the same textbox, I tried to use the maskedinput no more rolled.. Any idea how you could do…
c#asked Joao Pedro 143 -
1
votes1
answer79
viewsQ: Is it correct to store a record to use during the process lifecycle in a session variable?
Good morning, I have a web system, but it is super flawed... I store ID’s in Hidden input, however, it is visible if inspect element.. if I change the id_schedule to 1, it will update record 1…
-
1
votes1
answer71
viewsQ: Using good practice or the right way to store an ID
Currently when I need to change some customer data, I store the ID in a input hidden, but this becomes visible if you element Inspecione giving freedom to someone who has more experience…
-
3
votes1
answer8559
viewsQ: What is the ajax error function for?
I have some doubts, what is the use of ajax error? $.ajax({ url: 'ws/controller/sys_controller.php?id=4', type: 'post', data: dados, success: function (data) { /*$("#loading").hide();…
-
2
votes1
answer89
viewsQ: Problems with PHP data
I am using the following function to return the date correctly from Mysql to the Brazilian format: function FormatBR($data){ $date = date_create($data); $date = date_format($date, 'd/m/Y'); return…
-
1
votes1
answer194
viewsQ: How to add value to an input when pressing a link with jquery?
I’m having the following problem: I’m not getting to set the value in one input when he’s inside a function. Example: $(document).on('click',".edita_cliente", function(){ var id = $(".seq").val();…
-
0
votes1
answer307
viewsQ: Is it possible to create a JS file for all pages?
I have several pages, I wonder if it is possible to use the same JS on the same page. For example: I have a HOME page, where I carry the pages "son" inside a div (content), but for each page, I need…
-
0
votes1
answer72
viewsQ: Error with jquery UI Autocomplete
Good afternoon, I’m getting an error that particularly I’ve never seen, when trying to use jquery autocomplete, follows the image, and the encoding: PHP: (I used as an example, because I didn’t add…
-
1
votes2
answers1876
viewsQ: How to take the value of a TD?
I tried several ways (SEVERAL SAME) but did not succeed! Most return me one UNDEFINED Follows the code: PHP: <?php require_once('acessabanco.php'); $objDb = new db(); $link =…