Questions tagged as 'php'

1
answer

Error when selecting data from the database with ajax [closed]

I'm doing several cases in my code, but when I enter the listar case and execute it on my localhost it fails and it throws me an error    Fatal error: Uncaught Error: Call to undefined method mysqli_result :: feth_object () my code...
asked by 01.07.2017 / 07:55
1
answer

Record attendance (Entry and Exit) of an already registered employee - PHP & MYSQL

I am stuck with a system that I am doing for the university, and I need to know how I can make my system, which already registers employees of an institution, register the attendance of entry and exit. I have already programmed a CRUD syste...
asked by 30.06.2017 / 02:34
2
answers

Clear variables in url in the best way!

What other alternatives do I have besides headerremove to clean the url of my document when loading / reloading a page and get variables in special cases by get? I like the idea of sending variables by url in the backend and cleaning them in the...
asked by 07.12.2017 / 15:57
1
answer

in_array PHP Warning

I need to verify if at the time of inserting a new client, register.php, there is the email that has been inserted in the form or not. If there is an alert message, send the focus to the input email field and do not send data. If it...
asked by 18.12.2017 / 22:20
2
answers

Help with clipboard.js and td cells / td

I have a dilemma with clipboard.js What happens is that I have a couple of cells which I would like to click on the field of the cell is copied to the clipboard. As a test, I did the following: <script src="https://cdn.rawgit.com/zenor...
asked by 20.12.2017 / 01:26
1
answer

Problem saving image order in Database

I have a problem keeping the order of my images in the database, first I have a JS file where I store the new order in a variable, when I open a console.log, if it shows it correctly, then I send that data to an AJAX file that sends it to the co...
asked by 06.09.2018 / 11:25
3
answers

Get the last deselected value of a multi select with JQuery

I have the following multiselect: <div class="input-field"> <select name="id_empresa[]" id="select_empresas" multiple required> <?php $ids = array_column($id_empresa, 'id_empresa');...
asked by 06.09.2018 / 03:39
4
answers

Send HTML values to PHP function

Hello I would like to know how I can occupy the values that I give to an input of type number in this case in an html and occupy them in a function of a php file, I clarify that in that php file there are several functions .     
asked by 24.05.2017 / 15:20
1
answer

Disable WordPress and Plugins updates

I would like to be able to disable the WordPress and Plugins updates through code so that even the wordprees admin can not do it. Only when the web developer allows it. Do these lines serve me? define( 'AUTOMATIC_UPDATER_DISABLED', true...
asked by 24.05.2017 / 12:34
1
answer

SQLSTATE [23000]: Integrity constraint violation: 1062 Duplicate

It turns out that I have two tables: Label and Priority the fields in the tag table: id priority_tag_id name image the fields in the priority table: id name and so are my tables: And then I execute the follow...
asked by 11.05.2017 / 02:36