Questions tagged as 'php'

1
answer

You can not find ServiceWorker

I have a project with Laravel, Vuejs and I want it to be PWA, I already have the service-worker, the manifest.json and I made the change to package.json, But I have a doubt, for now this localhost: 8000 and tells me ServiceWorker registration...
asked by 03.04.2018 / 07:02
1
answer

Upload image with codeigniter

Controller: public function generate($id,$type){ $method = $_SERVER['REQUEST_METHOD']; if($method != 'POST'){ json_output(400,array('status' => 400,'message' => 'Bad request.')); } else { $...
asked by 22.03.2018 / 07:18
2
answers

search in different fields with different inputs mysql php

Good morning, I have tried to perform a search to a database in the following way .. I have a database with x columns (suppose that for more ease, the database has only two columns, a column that day is called and another called month), what I w...
asked by 22.03.2018 / 00:30
2
answers

Get values from a table - jquery - ajax

How can I go through the rows of an HTML table and get the values of a cell with a button? I am making an application in php and I need to send some data obtained from a table through ajax to another php file. I have already obtained the value...
asked by 21.03.2018 / 23:02
1
answer

Range of dates

I have a range of dates that is checking if the dates entered by a user coincide with some day of offer in the database, to coincide, print the new price, but it gives me two problems: 1) If I have more than two offers in the DB, it prints twice...
asked by 02.04.2018 / 16:44
2
answers

Close a modal when comparing what profile you have

I have a modal form, in which when you press save (submit) the fields are checked, type that you do not have any empty and such and then the values are sent. I would like to make, within my function, that when everything is correct, we look...
asked by 22.03.2018 / 11:15
2
answers

Empty list of PDO + MVC + PHP records

I am working on a Project Management System under the MVC pattern and the problem is when I print the records of my database in the CRUD, all the rows that correspond to my "winners" table are appreciated but empty Thanks in advance here I enclo...
asked by 08.03.2018 / 02:37
1
answer

Connect Eloquent ORM to MySQL through a port other than 3306

I have a couple of connections to each of them going to a different MySQL database, the issue is that one connects to a local server itself, but the other goes to a remote server and under "another port ", I handle the connections like this: $...
asked by 22.03.2018 / 22:28
1
answer

get_result () not recognized

Good day! I'm doing an autocomplete for an input in ajax through php and mysql, the tutorial here if you want to see it link the php adapting it to my database <?php require('conectar.php'); $keyword = strval($_POST['query'])...
asked by 27.03.2018 / 18:27
1
answer

How to fix Uncaught Error: Call to undefined function mysql_fetch_array () [closed]

I am trying to make a table that shows the data of the pet table by means of an array, it is expected that all the fields of the pet table will be shown, but only one error appears Fatal error: Uncaught Error: Call to undefined function mysql_f...
asked by 28.03.2018 / 23:54