I want the commented items from an external website. I cannot edit the website. The website looks like this, i editted a lot of things out but this is the path from the body: I am using PHP HTML Simple Dom and PHP 7.3. I am currently using this code to get the information from the website: I get an
How to select table on DB using a dropdown?
Let’s say that I have two tables on my DB (table1 and table2, and both of them have the same structure. Column | Type | Collation | Nullable | Default | Storage | Stats target | Description —…
Duplicate whole spreadsheed using Google Sheets API
I have a spreadsheet with prepared template and a bunch of Apps Script code to work with sheets. I need to export data into this template using Google Sheets API, but doing it in the same spreadsheet for all users is not the best idea. Therefore, I need to create a new spreadsheet for each user. I managed to …
Convert an array string into an array
How do I convert ‘[“1″,”2-1″,”3-1-1”]’ into [“1″,”2-1″,”3-1-1”]? So, a string into an array. I’ve tried casting ‘[“1”,”2-1&…
MySql Group By Count item count Distinct
I have a table looks like id user_id level 1 1 1 2 1 2 3 2 1 4 3 1 Here user id 1 exist in level 1 and level 2 Now when we count group by level then in …
PHP PDO return headers if there are no results
Is it possible to return the headers of a PDO query if there are no results as an array in PHP. For example: SELECT fruit.`type` AS ‘Type’, fruit.`shape` AS ‘Shape’, fruit.`age` AS ‘Age’…
Apache RewriteMap prg using fopen(‘php://stdin’, ‘r’) not working over HTTPS
I’ve set up a RewriteMap using prg which calls a php script, like this: And then .htaccess puts the output in an env variable MAPTO like this: It works correctly over HTTP, but over HTTPS no input is returned. I’m using Apache 2.4, PHP 7.2 and have confirmed that OpenSSL is installed. What could b…
get correct data from array
i am trying to decode array. this is my array array:4 [▼ “_token” => “tgPAddbrf3hI5tBIQIGyFYe9Y5RpwCj3rpZG5uVf” “resident_id” => array:4 [▼ 117 => “…
Saving multiple data for a user JSON array
For a site I’m working on, a user has the option to input exercise data and it is saved to a JSON file in an array: { “Email”: “chandlerbing@centralperk.com”, “…
How to send specific line item data to third party script
I’m trying to send price, name and id of each item in the order, plus an extra static value to a single js variable formatted in this way, items = eventID::price::name|eventID::price::name|eventID::…