Questions tagged as 'php'

2
answers

"Select" with data from different tables

I need help. I have to create with PHP , the options of a select with the data coming from different tables MySql , and once selected, insert them in another table. I have this query SQL : $consulta = "SELECT idCausa, Deudor_idDeu...
asked by 06.11.2017 / 07:31
1
answer

How can I use the contents of a variable that originated in a foreach, outside of it in PHP?

My case is as follows: Inside a foreach I download the contents of a mysql query and assign it to a variable $ preferences (it is a series of numbers, in this case 7 and 8 with an echo print 78) then I want to use that variable to put it a...
asked by 30.11.2017 / 04:23
2
answers

Validate a date in PHP

Good, I am trying to verify, rather validate, that the date of birth that the user provides me is less than the current date of the system. Could someone help me? Thank you very much.     
asked by 30.11.2017 / 02:45
2
answers

Problem uploading files to the server

Create a folder named files www.MiServidor.com/Archivos to which you modify the permissions to be able to read, write and modify. I have a form in index.php in which a name of an image and a file are inserted. When sending the form...
asked by 31.10.2017 / 04:37
1
answer

Access an attribute of a String xml

Amazon Market Place Id returns an xml with the list of X products, but I do not know how to access let's say to the attribute < ns2:Title> , the answer I get is the following: SimpleXMLElement Object ( [ListMatchingProductsResu...
asked by 30.10.2017 / 16:12
1
answer

Put several variables in a text string

Very good, I have a variable called origin, where I want to save a text string with two variables. That variable happened to get to a page (2) using the load function. The problem is that when I make an alert of origin from the page (2), it s...
asked by 30.10.2017 / 16:35
1
answer

AJAX PHP FORMS [closed]

Hols! I am trying to make a Form that validates the email, it is something simple and even then it does not work for me. it tells me that there is a mistake with the js, I am new using ajax and it still costs me  he says ajax-form.js:28 Uncau...
asked by 30.10.2017 / 08:41
3
answers

do not pass variables to me from ajax to php?

$.ajax({ url: 'functions/envio.php', type: 'GET', data: {nom:$("#firstname").val()} }); alert($("#firstname").val()); $(location).attr('href','checkout2.php'); } in the php $_SESSION['nombre']=$_GET['nom']...
asked by 29.10.2017 / 18:42
2
answers

Set a default value to an Input type Date

Good morning, I am working on a project using HTML5 and PHP, in this project I have the option to register people, in which they are asked for general information such as names, surnames, date of birth, etc., for the date of birth, use a input...
asked by 30.10.2017 / 23:46
2
answers

Bring data through a Laravel select

I am doing a project where, by means of a select I choose a developer and I bring the data from the database of said example developer (I select developer Daniel and bring me his specialty and hours) I tried to do it but the only thing I...
asked by 09.11.2017 / 04:07