Questions tagged as 'php'

1
answer

Table name in SELECT

I would like to know how to put the name of a table received by POST in a SELECT. I'm trying several alternatives and there's no way I can do the search: $response=mysql_query("select id,answer from ".$_POST['bd']." where id IN($order) OR...
asked by 26.01.2017 / 12:50
2
answers

Problem in Symfony 3 with ManyToMany Bidirectional relationship

I'm using Symfony 3 with Doctrine. In my application I have 2 entities: User and Role, and I need to make a bidirectional relationship between both entities from many to many that allows me to relate roles with users both from the User form and...
asked by 09.06.2017 / 17:36
1
answer

How to show the data of a database in a table in html and php

I'm new to php and html and I want to show the data in a custom table by bootstrap, this is my code <?php // Conectando, seleccionando la base de datos $link = mysql_connect('localhost', 'root', 'usbw') or die('No se pudo...
asked by 14.06.2017 / 02:57
1
answer

How to implement IPN notifications, Mercado Pago, for partial payments?

I am using checkout basic giving customers the option to pay with two cards. I use the SDK of PHP v 0.5.2 and I am set to listen to the topic payments of notifications IPN . / collections / notifications / [ID] ? access_to...
asked by 16.01.2017 / 22:46
1
answer

Pass a variable to the controller from AJAX in CodeIgniter

I have the following problem, in a view I get the data of a user through a foreach and one of them is the code, which through a link, I execute a function that passed the same code as parameter: <a href="" onclick="cargarID(<?=$f...
asked by 21.12.2016 / 15:00
1
answer

How to center up to 200 characters of text when printing in php

I am learning php and I need to modify the printing of some tickets in an application of my work. I have managed to work correctly but I have a problem. A legend field2 has been added, which is a variable description, from 1 to 200 characters...
asked by 16.02.2017 / 17:10
2
answers

Execute .exe in PHP

I have an application which should run a .exe that starts the execution of a scanner . The executable I have in unit C but I can not find any way to execute it.     
asked by 10.01.2017 / 19:57
3
answers

save several parameters in a single session

I have a question with PHP , I make a form with only input , and with 2 buttons, one to save and another to collect. The idea is that when you click on the save button, it will be stored in $_SESSION , as many variables as y...
asked by 18.02.2017 / 11:20
2
answers

Bootstrap table - reload records according to ajax json object

I'm creating a website with Bootstrap . Initially when loading the page I use PHP to insert the results in the cells of the table. So far so good. Then I use a button with a modal menu of Bootstrap which has a series of fields that are i...
asked by 04.01.2017 / 17:52
3
answers

How to clean a data to take another one in jquery?

I have a select in html that when I choose an option automatically by means of a ajax it goes to php and it responds me in json and it shows me the corresponding data of that id of the option I chose in...
asked by 02.01.2017 / 23:48