Questions tagged as 'php'

2
answers

If statement does not recognize the operator ||

I have a problem I have the following code. $model = new Crud(); $model->select = "a.idAplicacion, a.idPaciente, p.nombres, p.apellidos, a.peso"; $model->from = "aplicacion a JOIN paciente p ON a.idPaciente = p.idPaciente JOIN unidad...
asked by 15.11.2018 / 17:54
2
answers

Open input from icon font awesome

What happens is that I want to click on the fa-paperclip icon to open the window to choose which files I want to attach. I currently have this: <html> <head> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4...
asked by 14.11.2018 / 17:43
1
answer

Add amounts in stock

I need this occasion to add quantities in stock, for example, when registration is made of some item an input amount is added for example 2 , but later you want to update that same item adding 2 más , in total they sho...
asked by 14.11.2018 / 17:52
1
answer

Send post to PHP file outside public folder

I am having a problem, I would like to send a POST to a PHP file that is outside the public folder, but I can not point to that file. I hope you can help me. Thank you very much. My index.php <!DOCTYPE html> <html lang="es"> <...
asked by 11.11.2018 / 20:12
1
answer

Find a table with the name inside another

Sorry for my inexperience but I do not have a concrete idea of how to do the following. In a database table (project_snippets) in a table (code) I have four columns: id, code, author & link and id is the primary key. in the column code I wan...
asked by 10.11.2018 / 19:06
1
answer

How to mark a specific location on my Maps with PHP-Javascript

I have the following code in which it shows me the location zone that I am specifying, but it can be marked with an image (.jpg) that wants to add the place that I want. So I get the image where I'm putting the latitude and longitude? this is...
asked by 11.11.2018 / 19:29
2
answers

How to show data of 2 tables in a select

I have 2 tables account1 and account2 account1 with the columns [account_code1] and [account_name1] account2 with the columns [account_code2] and [account_name2] I need your help to show the data of account1 and account2 in the select...
asked by 11.11.2018 / 07:10
4
answers

How to pass a variable with ajax to another php file

Good I have an inconvenience with my code, I want to send you a data through ajax, that allows me to make a query according to what this variable brings, the problem is that you do not want to recognize me when making the $ _POST variable, in it...
asked by 07.11.2018 / 04:09
1
answer

PHP sprintf () Error of arguments when placing a url with Whatsapp

I am placing a WhatsApp URL in PHP in the following code: $url = "https://api.whatsapp.com/send?phone=57xxxxxxxx&#038;text=Bienvenido%20a%20xxxxxx,%20estas%20interesado%20en%20el%20Tartar%20de%20Atun%20"; $link = sprintf( '<a href="'.$u...
asked by 06.11.2018 / 16:23
1
answer

Get specific content in a JSON

I need to capture the uid and the osgjsSize that are within Files . I do not know how to solve this error ( I am a student / novice ). Thank you very much in advance for your help. <?php $url = 'https://pastebin.com/raw/...
asked by 07.11.2018 / 02:45