Questions tagged as 'php'

1
answer

download txt file

I am currently using this method to download a query made. mostrar_flush(1,"Espere un momento por favor mientras se termina la consulta 90%......"); $retorno[] = $ArrayPlanoCGUNO; $retorno[] = "06"; $codigo_serialize= base64_encode(s...
asked by 08.11.2016 / 20:07
1
answer

Restore table backup in sql and php

<?php $dbhost = 'XXXXXXX'; $dbuser = 'XXXXXXX'; $dbpass = 'XXXXXXX'; $conn = mysqli_connect($dbhost, $dbuser, $dbpass); if(! $conn ) { die('Could not connect: ' . mysql_error()); } $table_name = "chofer"; $back...
asked by 29.08.2016 / 19:46
1
answer

Interrogation with facebook and twitter

I need to make a system where given a url of a news item eg: www.dominiodiario.com/2016/09/01/titulo-noticia, to know the interactions that had on facebook and twitter that news. I know that from the facebook post you can get the likes and th...
asked by 01.09.2016 / 15:07
1
answer

php sequence works perfectly on Wamp but not on external server

I have on my local server with wamp a php file where I have a code to get the data of a form and send them to the google sheet with a google sheet library. But when I take these files the library and the php code to the external server of my web...
asked by 01.09.2016 / 09:41
1
answer

How to put condition in MySQL query

I have the following query that works the way it should. $result2 = mysql_query("SELECT * FROM datos WHERE intervalo in ($in) and fecha_hora >= '$dateini' AND fecha_hora <= '$datefin' and archivo in ($arch) and hora between $horain and $...
asked by 29.08.2016 / 20:53
1
answer

Modify and delete records from a PHP table

I have made the connection to my Database and I have a table that filters the records in real time with Ajax. I have added the delete and modify buttons but I can not make them work, I have tried several tutorials but most use Json. If anyone kn...
asked by 03.11.2016 / 04:43
2
answers

How do I send data from a modal window with ajax and php to mysql?

I have a modal window that sends data to a table in mysql called (jobs) that has three fields (Job_id, Job_Name and Cost) and likewise shows that data in the table in html My problem is that when sending the data, I get a message that it w...
asked by 04.11.2016 / 04:47
2
answers

I can not show an image with php

This is my code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php require("datos_conexion.php"); $conexion=mysqli_co...
asked by 22.09.2016 / 01:54
2
answers

Problems with a CURL

Thanks for responding, change as you indicate and nothing, why will it be? $ track = '103494'; $ url = ' link '; $ fields = array (   'ID' = > $ track,   'Go' = > one,   'Type' = > 'T' ); $ fields_string = http_build_query ($ f...
asked by 23.08.2016 / 03:51
1
answer

textbox visible depending on the value of a drop-down list

Hello how are the problems I have is how to make a texbox visible depending on the value of a drop-down list, I attach the vision code <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <!DOCTYPE html> <...
asked by 22.08.2016 / 22:06