Posts by Wagner Santos • 67 points
6 posts
-
0
votes1
answer28
viewsA: Problems with INSERT INTO in Crawler in PHP - Error passing variable as parameter
To pass variables into an anonymous function one must use the use as shown below. $crawler->filter('div[class="results-tr col-xs-12 col-sm-6 col-md-4 col-lg-12 no-padding"]')->each(function…
-
0
votes1
answer22
viewsA: I need to list 3 tables in the Standard, somebody help!!! I tried it anyway!
If I understand correctly I think what you need is the relationship Hasmanythrough. In sales would have: public function corretores() { return $this->hasManyThrough(Corretores::class,…
-
-1
votes2
answers25
viewsA: Generate JSON from a form with equal names
Transform the Names to the array format, the total for example would look like this: total[]. So you will have all the data in the post.
-
0
votes2
answers21
viewsA: How to enable manual typing by selecting the other option in Form-Select
You can do this using javascript. cargoSelect.addEventListener('change', function (e) { let element = document.getElementById('outrosInput'); if (e.target.value === "3") { element.type = 'text';…
-
1
votes1
answer27
viewsA: Domdocument search XML nested tag
You can use the Domxpath. To get customer data would be like this: foreach( $records as $record ) { // NIVEL NF ## parse the ID $id = $record->getElementsByTagName( "id" ); $id =…
-
2
votes2
answers49
viewsA: How to reload a page without losing inputfile
This cannot be done for security reasons. The action of selecting the file has to be done manually by the user. To be clear imagine the following situation: I own the site create a form with an…
inputanswered Wagner Santos 67