Questions tagged as 'php'

2
answers

send array from ajax to php

hello to all I have the following form in which I add products and when clicking on add they are stored in the table as in the image, As you can see in the image I have 3 products and when clicking on preview what it does is store all the record...
asked by 30.11.2018 / 21:35
1
answer

how can I get the subdomain in php

How can I get the name of the subdomain in php I have my php script works but when you put www.sub.domain.com you take me first www <?php $url = 'http://en.example.com'; $parsedUrl = parse_url($url); $host = explode('.', $parsedUrl['host'...
asked by 23.12.2018 / 21:27
1
answer

Html2pdf library problem with web server

Someone of you had problems with servers when implementing the library html2pdf Localhost works perfectly, but when uploading to the server it does not work, someone could guide me annex the following <?php require_once "funcion...
asked by 28.03.2016 / 17:55
1
answer

Use of array in session variable

Good afternoon, classmates. I would like to save in a session variable the value of two fields that I pass through $ _post from a form and that this session variable will store the data of those fields until I destroy it with the intention of...
asked by 13.12.2018 / 16:09
0
answers

As a filter for two variables in Login with JQUERY

First and foremost, I do not know if it's better to login with PHP directly, because I'm bringing users through an Ajax request to filter by username and pass, and the idea is if it exists, make another request ajax to load the session. Or it is...
asked by 24.11.2018 / 11:22
1
answer

Why do I receive different values in the same mysqli php query?

I have a problem with a mysqli login validation query, the problem is that there are two queries of the same function but obvious of different variables, one throws me an object result with an array of values, and the other returns bool ( false)...
asked by 25.11.2018 / 23:41
0
answers

Make Scroll go down automatically

I am doing a chat, but the problem is that when sending a message the scroll should go down, but you should also be able to see the previous messages. This is my code in js: function Scroll(){ document.getElementById('chat').scrollTop =documen...
asked by 29.11.2018 / 05:55
1
answer

HTML / PHP Fill in contact-form in safari

Well, I have a problem filling out a form that is sent to my mail. The fact is that it works perfectly in Chrome and IE. But in safari browsers (Iphone / Ipad / ...) it does not work as it should (If I'm entering the data and use the tabulator t...
asked by 17.03.2016 / 12:58
1
answer

SQL query does not show table in PHP

I have a query in sql that in the phpmyadmin shows what I need, but when I pass it to the php file it does not show anything, and if I remove the group by it only shows me a row, any suggestions !! (IT WORKS IN MYSQL BUT IN PHP NO) <?php if...
asked by 17.03.2016 / 17:57
1
answer

Use files from another virtual host

   Summary I need that from a virtual host, you can access the php files of another virtual host.    Environment CentOS 7 Plesk Onyx PHP 7.2    Scenario I have the following scenario (real data is replaced): api.domini...
asked by 27.11.2018 / 12:21