Skip to content

Tag: php

Compare a csv row value with a previous value [PHP]

I want to create a csv file from a SQL query that will fetch the information from the database of my Prestashop site. The creation works well, however an essential need for the creation of my file takes me well the head. The purpose of my file is to save the orders of the customers of the day, each line

Session and cookie lost when clicking a link from Gmail! Very Bizzzare

Brief Summary When I click a link from gmail, the cookies and sessions are lost. But if I copy the link in gmail and paste it in a blank tab, the cookies are retained! Long Detail At, i set cookies and PHP session with following options: $myCookieSessionOptions = array( ‘lifetime’ => (time() + 60*60*24*363), ‘path’ => “/”, ‘domain’ =>

Trying to get array from form post but not working correcty

I am building an application with php I have a form which contains an array of checkboxes as shown in the picture below I want to the values accordingly but it is not working as expected The form was generated with php for loop HTML I am trying to get the selected values but not working as expected. leaked_no shows

read/get @ value from url in PHP or Javascript

I’m currently developing a site in which a user can create a user area with a user directory created at registration such as Now I’ve seen YouTube & TikTok (and presumably more) use an url like (note the “@”) So my question is how do I read these? if a user visits how do I read the

AJAX POST request to a PHP server: Invalid request (Malformed HTTP request) on console and net::ERR_EMPTY_RESPONSE on chrome dev tools

I have the files test.html, test.js and test.php in my directory. I am trying to send some data to my backend, which should be dealt with by test.php. I run my server using PHP’s built-in webserver with the command php -S -t test-server/. Here’s a simplified demonstration, whenever I click “submit”, it should send the data to my php