I have two separate table LPG_usage and devices. In the LPG_usage table has 5 columns as (Device_id,Cylinder_Type,Date,Kg,Data_index ) and the devices table has 3 columns as (Device_id,User_name,Location) I want to select newest record by considering the Date in the LPG_usage table for all of Device_id’…
PHP cURL Received HTTP code 407 from proxy after CONNECT
I have a php curl with proxy problem. Below is my code: The format of proxies in proxy.txt is ip:port:user:pass and all proxies are working. The problem is when I used $proxyipport and $proxyuserpwd in CURLOPT_PROXY and CURLOPT_USERPWD, the curl result threw the error Received HTTP code 407 from proxy after C…
Sending array having space in keys being removed when sending by cURL
I have a strange issue. $arr = array( ‘my key 1’ => ‘Some data 1’, ‘my_key_2’ => ‘Some data 2’, ‘my key 3’ => ‘Some data 3’, ); I am sending this data using cURL … $curl = curl_init($…
Keyup function is only working once for first letter of input
I have a text input where the user enters a desired page name I am trying to use the keyup function to fire Ajax …
Laravel 8 database connection not working
Trying to connect laravel 8 app in production to mysql database. Have tried to follow documentation but it isn’t working. .env file as follows DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 …
Object of class IlluminateDatabaseEloquentBuilder could not be converted to string laravel 7
I have been trying to debug a problem for the past two days, my code, as follows, is first attempting to retrieve the category by its: Controller public function index(Request $request) { $stats = …
Dropdown with Search Box using Bootstrap Selectpicker not working
I’m trying to search for supplier from the database using the bootstrap-select picker on the dropdown. What I want is while typing in a letter, the dropdown shows the relevant name from the database. …
PHP S3 – How to get all versions of a specific file
I have a Laravel project and a version enabled S3 bucket. I can list the versions of all objects within the bucket using the listObjectVersions method. My attempt to list the versions of a specific object is as follows: This seems to get all objects within the bucket which is not what I want. Is there a way t…
merge object in php
i have below json data { “data”: [ { “minggu a”: “2”, “total a”: “377033” }, { “…
Track delivery status of DHL via form
I have a question. I have the following PHP script <?php $dhlsendnumber=$_GET['dhlsendnumber']; { $uri="https://www.dhl.de/de/privatkunden/dhl-sendungsverfolgung.html?piececode=$…