Questions tagged as 'php'

2
answers

problem on the date 1970

I have a variable in my DB which stores the following value FECHA_MOV= "2015-03-19 04:34:20" I would like to print (show) the date in this format "d-m-Y" ==> 19-03-2015 . But I get the next date "01-01-1970" ==========codigo...
asked by 10.09.2018 / 19:47
0
answers

Failed to return JSON "SyntaxError: Unexpected token in JSON at position 0"

mysqli_connect.php <?php //db details $db_host = '127.0.0.1'; $db_user = 'root'; $db_pass = ''; $db_name = 'db_ws_restphp'; //connect and select db $con = mysqli_connect($db_host, $db_user, $db_pass, $db_name); ?> index.php <?p...
asked by 04.09.2018 / 22:53
0
answers

Import driver command yii

Hi I have the following problem as I can import a driver in the run function to execute a command by console in yii 1 framework Yii::import('application.controllers.CreateEmailController'); class emailCommand extends CConsoleCommand {...
asked by 03.09.2018 / 22:01
0
answers

when downloading a pdf file from a directory does not take the format or find the file

good day I tried to download files from a folder in the directory, but when downloading does not find the file or the format <body> <div class="Contenedor"> <div class="tabla1" id="tabla1"> <h3><center&...
asked by 04.09.2018 / 02:39
1
answer

Running a Python script from PHP without waiting for an answer

My problem is that I have a WEB page that I must integrate to a Bot in python for each user and make a call to the python bot and that it stays running on the server even when the user has disconnected. I tried to do it with the shell_exec fu...
asked by 03.09.2018 / 22:16
2
answers

Multiply PHP and jquery variables showing result in a div

I have a table with the Price field that is extracted from mysqli by php, and another field Quantity that is a select (values from 0 to 10) that I extract with jquery, occupy jquery to detect the change of value of the select. How do I show the...
asked by 01.09.2018 / 20:49
2
answers

Blank form. It does not work

I have created the following form and I want the data entered to be saved in the database. But when I send the form, it goes blank and does nothing. I created the database, the user and the table. All the data is correct: index.php...
asked by 01.09.2018 / 15:52
0
answers

140: invalid card owner, Payment market, Associate card to Customer

This is my code public function create_card($id, $token) { $request = array( "uri" => "/v1/customers/{$id}/cards", "data" => array( "to...
asked by 01.09.2018 / 16:39
0
answers

Error with TableSorter - JQuery

I'm wanting to order, but when I click on the headers, this happens. When I do it with a table created in hard (hard data) it works perfectly, also when the data is already loaded from the beginning with PHP, but when I fill the table f...
asked by 03.09.2018 / 09:41
0
answers

enable php.ini errors

I do not understand why I can not see php debug errors on the screen. I'm in a local WAMP environment, which contains: apache 2.2.22 php 5.3.13 mysql 5.5 I'm going to the php.ini of php and I'm modifying the line: error_rep...
asked by 03.09.2018 / 00:41