Questions tagged as 'php'

2
answers

Pass a variable with unique value to another class

I have two classes class class1 extends Controller { public function fun 1($xxxxxx){ $sCliente = new Client; $sCliente->xxxx = $oData->xxx->id; $sCliente->name = xxx->fullName;...
asked by 11.08.2018 / 22:55
2
answers

Check days from the 1st to the 5th of each month

I comment, I need the system on the days of 1 to 5 of each month to verify if people from a condominium made the payment, but to place them in default. I was researching and I believe that I date period with date interval, it is th...
asked by 12.08.2018 / 12:59
1
answer

Form html will not let me upload data to bdd in phoMyAdmin

I am working on an html form to send data by the POST method to a file vCurso.php but it does not let me enter the form data to the data bdd I get an error that You could not send the data. and look for error comparing with other files to v...
asked by 25.07.2018 / 14:22
1
answer

How to put html in a javascript object?

What I'm doing is that in wordpress I'm creating an object with post.push([ { contenido: "<?php the_content(); ?>", } ]) But when I do that, the content returns it to me in HTML and javascript marks it as an error.     
asked by 22.07.2018 / 21:35
2
answers

The jquery .on event does not occur to me

I have the following situation, I am loading a code from Php to html with jquery . What is happening to me is that from the code I'm printing from Php when I show it in the html I do not recognize the jquery selector ( a.deleteComec ) tha...
asked by 26.07.2018 / 23:20
1
answer

Get data through POST to PHP from a MYSQL SQL query

** Hello good day, I wanted to know how I can get a value of a query by means of post to send it to a php. What happens is that in the example code that I followed ( Link ) only sends 3 data of different combobox and I occupy a 4th...
asked by 26.07.2018 / 02:32
1
answer

Problem with $ _GET

*** I have the following PHP file to connect to a database in MySQL: Connection.php <?php $Link = 'mysql:host=localhost;dbname=yt_colores'; $Usuario = 'root'; $Password = 'root'; try{ $PDO = new PDO($Link, $Usuario, $Password); } catch...
asked by 26.07.2018 / 19:15
1
answer

How to compare two input one type datetime and another datetime-local?

This is the comparison, since it does not allow me to compare apparently to be two types of input different since I do it with two type date and it works, and I do not do so because in input type datetime I show the date of...
asked by 19.07.2018 / 14:51
1
answer

Parsing XML with simplexml_load_string in PHP

<Stat Type="Venue">Allianz Stadium</Stat> <Stat Type="City">Torino</Stat> The previous nodes belong to my XML file. the only thing I need to solve it's how I generate the exit and only show me Allianz Stadium. my cod...
asked by 01.08.2018 / 19:47
2
answers

Save data in a variable of an array within a while?

I make a query to the Database where it brings me a certain initial numbers and some endings that are saved in the arrays $ initial and $ final. I go through these arrays with a while but I want that every time the array is traversed, the initia...
asked by 01.08.2018 / 16:49