Questions tagged as 'php'

2
answers

Console error when sending form data using Ajax

Friends please I need help I do not know why ajax does not bring me the result of the request when I send data from my form. If someone at least explain to me what is my mistake and what is it about? Thanks. What I know, is that when I send m...
asked by 16.07.2018 / 05:06
1
answer

Tour Arrangement

Hello very good afternoon I would appreciate it if you can help me, I have the following arrangement: array(3) { [0]=> array(20) { ["uuiddet"]=> string(0) "" ["uuid"]=> string(36) "63ea13a8-1c32-4456-9604-4bfa9b953...
asked by 05.04.2018 / 21:43
1
answer

Jquery dependent values in several rows

I have a button that adds, on the one hand, a row in a table with fields to fill. Also, with the same button, a row is added to another table, where some dependent data of the first table is completed. The problem is that when you add two rows o...
asked by 05.04.2018 / 20:09
1
answer

Insert data in 2 different tables

Good I need to insert data of a record of a user in 2 different ablas, the id in the table users is the primary key and in the table owners is the FK but when doing the query it does not record them register in the users table but not in the own...
asked by 13.03.2018 / 03:59
1
answer

Return image in array bytes format from URL on the internet?

Let's say I have this URL for the image:    link How can I get an array of bytes of this image? I edit to add information about what I have tried but it does not work for me: I've done this: $filename = 'https://www.nissan-cdn.n...
asked by 13.03.2018 / 10:40
1
answer

Do not insert date field in my BD

I make a massive import module of an excel.csv file but in my date field (DATE) it does not insert the data correctly, it only inserts 0000-00-00, the other fields in the import do it without problem only it's in the date field. This is an ex...
asked by 13.03.2018 / 05:41
1
answer

Unlock results PHP 7 PDO

someone who knows what function is used in PHP 7 to release results after a query. Because I know of mysqli_free_result (), but I think this should no longer be used in PHP 7.     
asked by 03.03.2018 / 22:29
1
answer

Function in PDO to escape special characters

What is the function that is currently being used in PDO to escape special characters before executing a SQL statement? Before starting to use PDO I was using real_escape_string (), in addition to others that are used to clean strings such as...
asked by 03.03.2018 / 23:12
1
answer

SOLVED: Error editing a record with CakePHP

When I edit an entry, it generates the following error:    Deprecated (16384): Using key action is deprecated, use url directly instead. [CORE \ Cake \ View \ Helper \ FormHelper.php, line 383] When editing and giving it sav...
asked by 03.03.2018 / 01:39
1
answer

Compare Referer using stripos ()

Hi, I'm wondering how to compare the referer using stripos () example: <?php //Verifica el referer $mayreferr = @$_SERVER['HTTP_REFERER']; if(stripos($mayreferr,'misitio.mx')){} The problem is that I want to use a list of sites to compa...
asked by 28.02.2018 / 22:45