Questions tagged as 'php'

1
answer

On ("Click") JavaScript does not work [duplicate]

I made a script to get the value of an element that is generated in php, whenever this element is clicked but it is not working <script> $('.collection-item').on('click',function(){ var idA = $(".collection-item").val(...
asked by 26.09.2018 / 05:42
3
answers

Add today's date by the number of estimated travel hours

I get a value in the form of Hours and Minutes example:    "09:00" hours and minutes I need to get the date from today to make the sum hours and minutes and present example:    Arrives today at 17:30 hours and minutes If the value...
asked by 06.11.2018 / 17:19
0
answers

Unlink functions from 'buttons' in PHP

I would like to unlink the buttons, I have a button generate password and a call, but every time I generate a password, it also calls, would like to unlink these buttons, could anyone help me please? <?php echo "<form>"; echo "&...
asked by 10.11.2018 / 14:53
2
answers

How to pass SESSION to a variable in php

Hello. I would like to know how to pass the $ _SESSION code to a variable if ( isset($_SESSION['codigoUsu']) ) { $codigoUsuario=$_SESSION['codigoUsu']; inserirVenda($codigoUsuario,$codigoProduto); header("Location: produtosSe...
asked by 13.11.2018 / 01:57
1
answer

How to specify the enctype of a gravity form?

I'm using Wordpress with Gravity Forms. I have a form that I am using to submit data to an outsourced website. In detail, this site is expecting data to be sent application/x-www-form-urlencoded , but Gravity Forms is sending multipart/...
asked by 18.02.2014 / 18:50
1
answer

CakePHP - Retrieve option value

Hello! I'm fixing a website that I got ready and it has a part that the user selects a neighborhood in <option> , however, this <option> is not sending the information to the database. Selecting the city, the neighbor...
asked by 20.02.2014 / 17:13
0
answers

Method to subtract two values from the sum of the records coming from the MySQL database

Good afternoon everyone, I'm creating a class that will work as a box where it will add all the records found in the database with the column in the value of IN and OUT and in the end I subtract Input - Output but is not working anyone can te...
asked by 20.09.2018 / 22:01
1
answer

Problems with MYSQL data return via include in PHP [closed]

I'm starting a code for a warehouse control using PHP and MYSQL, and by making a function document separate from index.php and performing the appropriate variable insertions via include declared in the head of index.php and call the variab...
asked by 20.09.2018 / 19:06
2
answers

How to make two WHERE clauses inside a nested WITH

I have the following code snippet $sectors = Sector::where('company_id', $id) ->where('status', '0') ->with('charges.levels') ->get(); I need 3 conditions sector status is 0...
asked by 19.09.2018 / 16:04
2
answers

How to pass the 'id' of a post via 'post' using AJAX?

I would like to execute an update via ajax , but I am having difficulty sending id of the post via post or get to the external form: php/editarDespesa.php . The form is not displaying dados , but without us...
asked by 13.12.2014 / 09:26