Posts by Allex Nogue • 64 points
6 posts
-
0
votes1
answer29
viewsA: Passing a body value from a modal to a PHP function
The only problem I see is that your function paraProd() is not being called, if it is to remove a record from a given table, instead of doing so within functions.php you could create a unique file…
-
0
votes2
answers140
viewsA: Add an action to a <select>
In your script there is nothing causing Collapse to appear, so try this: $('.selectAcao').on('change', function(){ $('.collapse').collapse('show') }) <script…
-
-1
votes1
answer45
viewsA: Array with database data
In your consultation try like this: $slug = $con->prepare("SELECT slug FROM categorias"); $slug->execute(); $array = array (); foreach ( $slug->fetchAll(\PDO::FETCH_ASSOC) as $row ) {…
phpanswered Allex Nogue 64 -
0
votes2
answers71
viewsA: The correct way to count an array in PHP
in case you’re doing the wrong Count, you’re counting the $file index and not the $files array try: count($files)
-
0
votes1
answer197
viewsA: Calling PHP function via a button in a modal
Come on. PHP is a side serve language, meaning it runs on the server HTML, CSS and JAVASCRIPT are processed in the client side, i.e., runs in the user’s browser. With this in mind, your code will…
-
2
votes1
answer138
viewsA: Take the value of the "data-" attribute with jquery
You can try: $('.quantitative-btn').on('click', function(){ var name = $(this).parent().data('name'); alert(name); });