Questions tagged as 'php'

1
answer

Get instagram HTML [closed]

I have this code, but the file_get_contents does not work correctly. $html = file_get_contents('https://www.instagram.com/'); $dom = new domDocument(); $dom->loadHTML($html); $dom->preserveWhiteSpace = false; $images...
asked by 24.02.2017 / 09:51
1
answer

Help with creating a php record and insert in database

I do not understand much about this, but what I'm doing is an android project. Create a login with facebook, which leads to a user registry, in which only the users enter a user, and the rest of the data I subtract from the profile. The fu...
asked by 31.12.2016 / 06:47
0
answers

PHP: Publish item mercadolibre API

I have been working with the api of mercadolibre, now I wanted to publish an item (I managed to do it from Advance REST client) from my application PHP , but I have no idea how to pass the parameters in Advance REST client. step writing the jso...
asked by 20.01.2017 / 21:29
1
answer

Search for html files with keyword inside?

Well I tell you, I have a website where I have products for sale. Previously I could put them on the main page without worrying that customers would not find what they were looking for because they were few products. But now I have increased the...
asked by 21.01.2017 / 20:52
1
answer

Local name collision

I see this series of errors, and I can not find a solution, I could read that not only do you have to create a VirtualHost , but you also have to specify it in < strong> / etc / hosts . All this I am doing from a virtual machine with Fedo...
asked by 22.01.2017 / 19:51
1
answer

Variables bind_result () can be equal to bind_param ()?

I'm starting to see the prepared statement of SQL . I have the following code for a simple login : $stmt = $mysqli->prepare("SELECT id_admin,usuario,hash_pass FROM admins WHERE usuario = ?"); $stmt->bind_param("s", $usuario); $s...
asked by 18.01.2017 / 16:26
2
answers

Display date format in "d-m-y" and save to a database in "y-m-d" format

I have to show the format D-M-Y but it must be saved in the MySQL database, Y-M-D . I am using Bootstrap for the calendar of dates and PHP to perform the maintenance on the table. Code HTML and PHP : <div class="form-...
asked by 17.01.2017 / 20:50
1
answer

Get Array within Json

I have two tables on MySql one Blog and another Carouser unit on a foreing key. How can I get a json like the one I see at the end? An array inside an object. In PHP. CREATE TABLE 'Blog' ( 'blogId' int(11) NOT NULL, 'blogTitulo' varchar...
asked by 17.01.2017 / 10:08
1
answer

Autocomplete an input dependent on another

I have the following: a form with a customer fields and another appliance field in the database, each device is related to a customer by means of the primary customer key. what I need: At this moment I already have the completed car running i...
asked by 29.07.2017 / 21:02
2
answers

money_format () expects parameter 2 to be double, string given

In the following expression in which I want to format some values: @foreach($price_list as $price) $number = ($price->price_normal); setlocale(LC_MONETARY, 'en_ES'); echo money_format('%i', $number) . "\n"; @endfoerach Res...
asked by 30.07.2017 / 00:30