Questions tagged as 'php'

1
answer

How to upload files from webview with php and javascript

I will proceed to explain everything as detailed as possible. My system is PHP and I used the Materialize framework. There are 2 forms that require uploading files. Form 1- Requires uploading a photo (JPG, JPEG, PNG, GIF). Form 2- Requi...
asked by 06.04.2017 / 11:56
0
answers

Concatenate results of last numFile (id) registered and another update field

I need to know how to concatenate results obtained after a insert and update a field, with the information ... The insert, the isset and others work correctly, all I want to do is after if ($result > 0) . In $query2 I'm...
asked by 04.01.2019 / 18:08
1
answer

save meta width in variable session Javascript

I'm working on a page which I want when the user presses 'full version', force the width of the meta to make it look like the real web, the script does something like this: ((function ( $ ) { var mobile = true; var targetWidth = 1100...
asked by 07.04.2016 / 09:34
1
answer

Avoid registering duplicates in database with Codeigniter

How about, I tell you, I have a form and register everything well. What I need now is that once a code has been registered, it will no longer be possible to register it again. This is the form: <?php echo form_open("PaquetesController/ad...
asked by 07.04.2016 / 05:43
1
answer

How to compare a query with 2 variables at the same time in a table of the BD?

I have an elaborated application, everything works excellent, I only have one detail: I need that when making a query (The plate of a vehicle) it is compared at the same time with 2 variables of a table in the BD (plate_1 and plate_2) How can I...
asked by 10.04.2016 / 20:58
1
answer

Filling in a text input when changing a selection option

I have a question about how to fill in a text input when I change the option in a select, I do this because I want that when I select the patient's name I fill in an input with his phone number, I'm working with codeiniter, bootstrap modals and...
asked by 28.12.2018 / 00:58
3
answers

problem with e.preventDefault () using Ajax in Laravel 5.7

I have a form sent by ajax but it does not save the information in the DB when I activate e.preventDefault (); if I mention it if you save it. EL Ajax is: $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token...
asked by 27.12.2018 / 21:48
0
answers

.HTACCESS, problem when opening a page from a remote server

I am setting up a web page created with PHP with Modelo-Vista-Controlador to a remote server. On my local server ( XAMPP ) it works perfect, the URL of this is http://localhost/pagina and this is my code of .htacces...
asked by 28.12.2018 / 16:08
1
answer

Query to show data of a form

How do I make my computer display the data on the same page of a form simultaneously when they are sent to a database? It is for a comments section that I have planned to put on the web page that I am creating and also put the date and time resp...
asked by 26.12.2018 / 23:21
3
answers

CONSULTATION JOINING VARIOUS COLUMNS

I have a table with 5 columns ... I search the database through the following line where $ search contains the search criteria that I want to make. $sql=("SELECT * FROM bdfo WHERE piso LIKE '%$buscar%' OR sala LIKE '%$buscar%' OR fil...
asked by 20.12.2018 / 01:04