I’m using PHP 7.2.12 and PostgreSQL 9.5.5 and Lumen 7 when i execute a query with query builder, Lumen give me numeric column as string. Table: id: bigint { id: “1” } i have searched for and …
Tag: php
Can’t set cookie on different domain
This URL has the code below: https://trywifibooster.com/test/setCookiesFromAnotherDomain.html?param=SHOULD-SET-TO-THIS var params = new window.URLSearchParams(window.location.search).get(‘param’); $….
mysql optimisation number of ads in a category
I have a personal ads website . First problem: I have 2 tables, category and ads. Category table (id is the primary key) | id | type | subtype | pos | +—–+————-+———–+-…
PHP 7.4 deprecated get_magic_quotes_gpc function alternative
I am encountered with the situation where one of my old code is using get_magic_quotes_gpc() which is deprecated in the latest PHP version 7.4.* Currently, I have something like this. Add Slashes …
font size change onclick for more than on div
I have 10 div and when any one click on any div and then click on increment button then font size of that div should be increase. It is working for single div. But I need for more than one div. When …
How to replace a single tag with multiple values in PHP?
I am sending a job openings email to my website users. I have the following sentences. Dear user, The following jobs are recently posted in our website. [JOBLIST] Thank you. If there is only one job,…
Rewrite URL with parameters passed through PHP
So I have my PHP page page.php with the parameter id for example. Everything works as expected when I visit page.php?id=1 What I try to do now basically is, reach the site when the user visits …
PHP verify Paypal webhook signature
I’m having trouble trying to verify paypal webhook signatures with PHP. Using the new V2 of paypals APIs I am receiving the paypal webhook on my page. However I can not seem to successfully validate the signature. From the link HERE I got some sample webhook validation PHP code from paypal. I can not ge…
How to pass multiple array in response – Laravel API
I am creating my API for mobile app in Laravel. I am facing an issue where I have to pass two arrays as json but it shows error. Here is the code which I am using public function showSearchPage($…
Php cart session is not update the attributes, only the quantity
Im trying to update cart attributes but i don’t know why is not working, the quantity is updateing just fine but the nested attributes wont. I don’t figure’it out how to make this to work properly …