Questions tagged as 'php'

0
answers

Problem with the file_get_contents ()

I'm trying to get through the file_get_contents() page of Google so I'm using xampp here I leave my code PHP : <?php $arrContextOptions=array("ssl"=>array("verify_peer"=>false, "verify_peer_name"=>false,),);...
asked by 16.11.2018 / 23:08
1
answer

Problem when trying to obtain and delete a session in laravel with $ request-session () - get ('cart') and Session :: get ('cart')

I am developing an online store with Payu Latam, what I want to do is that when payu confirms a purchase I can empty the shopping cart of said buyer. The process is the next ... I send the purchase data to the Payu gateway so the users lea...
asked by 19.11.2018 / 18:24
0
answers

Filter month with date date (Y-m-d)

Previously I made the date division date ("Ymd"), because I wanted to print only the month, then I printed it in number and I made the modification to pass it with the letters of the month, now I have a filter an input type=" mont "which I want...
asked by 16.11.2018 / 23:50
1
answer

Send JS data to PHP with ajax

Partner I'm trying to send data from a JS to a PHP that allows me to generate a PDF document, here the JS. var IDencuestapdf; var IDcontratopdf; var IDuserpdf; function generarPDF (){ IDencuestapdf = $('#idencuesta').val(); IDcont...
asked by 17.11.2018 / 16:42
1
answer

Does not redirect to index.php

I have a website in PHP with a login that once the login button is pressed, it does not redirect me to the index but it stays inside the login. I enclose the codes for index , login , registration_login index.php <?php require_once...
asked by 19.11.2018 / 19:16
1
answer

Problems comparing two variables in php

I have two sql server queries in php and I want to compare them. I have them as follows: $variable1 has N amount of data. $variable2 has N amount of data. Both variables save SQL Server queries from different tables...
asked by 17.11.2018 / 16:42
1
answer

Send data with redirect with cakePHP Version 2

With the redirect method, change the driver and view, but I want to change before sending a parameter, but I do not know how to receive it in the other controller, the data is sent by the url, but it is a rare thing that does not use the sign "?...
asked by 17.11.2018 / 21:05
0
answers

Find value first row and first column to make a query

I would need to make a query with two variables when clicking on a link in a cell: Value of the column Value of the first row I have the following table: +--------+----------+----------+ | Name | Open | Close | +--------+----...
asked by 17.11.2018 / 20:01
0
answers

Month filter with split date

Hi, I have this detail of doing a filter with only one month I have a date field (Ymd) and another field month from which I take the date field dividing the date into parts to only print the month which I printed the month with number after Now...
asked by 18.11.2018 / 16:50
0
answers

Variable jQuery in a query

In an index.php file I have a table and using the following script that takes two variables that I need to assign to a query: $('#table tbody').on( 'click', 'td', function () { name = $(this).parent().find('td').html().trim();...
asked by 18.11.2018 / 08:56