Questions tagged as 'php'

2
answers

Server does not recognize function date_create_from_format

I am using the date_create_from_format function for dates <?php $tiempo_pregunta = date_create_from_format('Y-m-d H:i:s', $pregunta->fecha." ".$pregunta->hora); ?> But the problem is that the apache does not recognize that ph...
asked by 20.03.2018 / 18:04
1
answer

How to upload files from an ftp server on my website? [closed]

I need to show on my website a list of the files that are on an FTP server, and that these can also be opened from the web. Can someone help me with this?     
asked by 20.03.2018 / 19:06
2
answers

Doubt with DateTime

I have an application where the employee can make vacation requests. Well my problem comes when I want to choose back dates. Let me explain myself better, I have this if : if($fecha_inicio < $fecha_solicitud){ echo "Start date can...
asked by 14.03.2018 / 14:16
2
answers

Export data csv with PHP, Jquery

The HTML code is: <input type="text" class="form-control" id="from_date" name="from_date" aria-describedby="basic-addon3"> <div class="input-group mb-3"> <input type="text" class="form-control" id="to_date"...
asked by 06.03.2018 / 10:56
2
answers

Error the Mysql when uploading to the hosting with Laravel

I have changed the data in .env with the new data that the database hosting gives me and when I go to enter it gives me an error: I'm using webhostapp.com as hosting And I have changed in options the php version to 5.5 ErrorException in MyS...
asked by 05.03.2018 / 13:14
1
answer

Insert 3 more days to the current date add Saturday and Sunday

I have this in php mysql $fechaactual = Date("Y-m-d"); tep_db_query( "UPDATE " . TABLE_ENTREGAS . " SET fecha_calidad = DATE_ADD('" . tep_db_input($fechaactual) . "', INTERVAL 3 DAY) WHERE numero_contrato = '" ....
asked by 06.03.2018 / 11:52
2
answers

Locate row in php table without id

As you would to place a row in a table that is armed in the following way: <table cellpadding="0" cellspacing="0" border="0" style="width:740px !IMPORTANT; overflow:scroll; border:1px solid #FF6600;" class="display2"> <tr sty...
asked by 07.03.2018 / 15:51
1
answer

redirect to a PHP page with header

Good day. I have a script which after a user signs in sends it to the control panel of their account through a link that has to be clicked, everything works great, but I think it would be better to automatically redirect to the control pane...
asked by 01.06.2018 / 15:11
2
answers

put a link to in an echo

Good morning, It turns out that in a .php file I receive a request through ajax and then fill a table in another file with the records found according to the parameter, everything works great. First of all, this is important, my .php file whi...
asked by 30.05.2018 / 23:01
1
answer

How can I go through all the records of two queries at the same time

How could I loop through all the records of 2 queries (at the same time) that are stored in 2 associative arrays (mysql_fecth_assoc) and compare them with the function array_diff (array1, array2). I did it this way and only loads (and compare...
asked by 01.06.2018 / 11:43