Questions tagged as 'php'

2
answers

Insert data in database

I am trying to insert my data from a form and from a database, that is to say that from my form I only add payroll and dates and when executing in the INSERT I insert what is related to that payroll number of the table used, I saw that it was do...
asked by 12.12.2018 / 17:29
2
answers

Read JSON from PHP with Javascript

I have a problem to find out how to put a Json in a cycle to read all the data of the array and generate variables with JS. In this way I create the Json arrangement function info(){ global $conn; //Query a seleccionar en la base d...
asked by 12.12.2018 / 16:01
3
answers

Add more columns in NOT IN MySQL?

I am new to the forum, it has helped me so much so far. But now I can not find a solution for the following: I have a table in MySQL called "events" and another one called "vehiculos", the application I'm designing is for reserving vehicles w...
asked by 11.12.2018 / 17:21
1
answer

The text sent in the ticket is pasted

I'm using FPDF with php and the ticket goes like this: I use MultiCell but it does not leave a line without quantity and price to see the detail. the code is: $pdf = new FPDF('P','mm',array(100,150)); $pdf->SetLeftMargin(2); $...
asked by 21.12.2018 / 12:36
1
answer

two selections in a row

I have to do this exercise before Friday and it does not finish to me to leave, I will explain myself. I have in a database countries, cities and data of those cities, to which I connect well. I need to make two selections in html in a row, one...
asked by 20.12.2018 / 11:55
1
answer

Redirect from HTTP to HTTPS with htaccess

Let's see if any partner takes me out of doubt. I'm about to launch a new website designed with php and I want to modify the .htaccess file to use the SSL security certificate. I have found so many examples that I do not know how to use...
asked by 19.12.2018 / 18:29
2
answers

Validate fields with Javascript

I am working on a reservation system in which when a customer clicks on the type of payment without choosing the date, the input that defines día and valor is completed only with NaN . I do not know how to make it blank and m...
asked by 19.12.2018 / 14:16
2
answers

Create a table in HTML with php consulting a database. What is the best option? [closed]

<?php require "conexion.php"; $conexion = new mysqli($host,$user,$pass,$baseDatos); if($conexion->connect_errno) { echo "Error de conexion de la base datos".$conexion->connect_error; exit(); } $sql = "select * from medicos";...
asked by 23.02.2017 / 13:42
1
answer

Invalid JSON error reponse with DataTables

I can not load the information of a JSON in my table. When I get information through Ajax with DataTables , it tells me the error:    DataTables warning: table id = dt_client - Invalid JSON reponse. For more information about this error...
asked by 02.03.2017 / 07:28
1
answer

Real-time data binning with Angular and PHP

I make a query to a .json file and with the answer I make a table but because the .json file is constantly updated, I need to be observing if that file has changed to show it in real time in the application, and I have tried but I can not get th...
asked by 27.01.2016 / 19:08