Questions tagged as 'php'

1
answer

Disable days in a datepicker if records already exist

I'm making a system where patients can request appointments online. At the moment I have a datepicker in my code as follows <script> $( function() { $.datepicker.setDefaults($.datepicker.regional["e...
asked by 07.08.2017 / 07:04
2
answers

Use custom user fields in the list of users in WordPress

I have installed a plugin in wordpress that allows inserting registration forms for users with custom fields (in my case, "Company" and "CIF") The insertion of data is done correctly, but I also want to show them in the users section as in th...
asked by 02.02.2016 / 20:07
2
answers

ERROR: org.json.JSONException: Value ... of type java.lang.String can not be converted to JSONArray

I have this error:    org.json.JSONException: Value i201600010 of type java.lang.String   can not be converted to JSONArray My code is as follows: @Override public void onClick(View view) { Thread thread = new Thread(new Runnable()...
asked by 24.11.2016 / 07:03
3
answers

Count vowels of a string in PHP7

I have the following statement: I have to count the total characters of a string, count the total number of vowels, and the number of times each vowel appears. I lose myself a bit and I've done it without a loop while. I can not use arrays eithe...
asked by 04.11.2016 / 21:19
1
answer

Difference in Codeigniter

I am working with the Api rest service in Codeigniter, my query is: I have a json that returns all the students of the mini system1, in the mini system 2 I have a table called Assign where I keep the id of the student and other data, my probl...
asked by 04.09.2018 / 00:23
1
answer

Consult twice the same table

I have the holiday table which has two fields, one that is authorize_id and request_id, makes references to the same employee table, I can already show the name of the one who authorizes by means of the id, but I do not know how to show the name...
asked by 28.08.2018 / 19:45
2
answers

Update with IF - SQL MySQL

I have to change the value / state to an ENUM ('0', '1') of a field in a table. I'll do it with an UPDATE query with if included. cambiar_estado.php: <?php //Dormimos el proceso unos segundos... sleep(3); //Consulta para act...
asked by 15.11.2016 / 13:26
1
answer

Change a link generated by php

In the Kalfo template of themeforest in the page that shows the portfolios of the different galleries a link with the text "All" is generated that shows all the elements of all the galleries, it took several days looking for where to change that...
asked by 28.09.2016 / 11:30
1
answer

Problem with getHighestColumn () PHPExcel

I'm having a problem, I have to do a for and the variable that happens to me is from the library PHPExcel ->getHighestColumn() , but the problem is that it returns "G", "Z", "AA", "AB". And there's the problem, it occurred to me to pass...
asked by 24.05.2016 / 15:49
2
answers

Resize image that comes by POST in PHP

How can I resize an image that comes to me by POST from a form? $rutaFichero = '/img/' . basename($_FILES['imagenNoticia']['name']); if (move_uploaded_file($_FILES['imagenNoticia']['tmp_name'], $rutaFichero)) { $imagenOrig...
asked by 15.06.2016 / 09:52