Category "php"

Using PHP sessions to open new android activity

I have created the following PHP in order to check if some username already exists inside a database. If it exists and the username+password is correct, I had

laravel livewire pre selected multiple checkbox get and update value

Basically, I am trying to make a multistep form like google forms and using livewire. By saving each single page data on next click. on some page, I am trying t

browsersync doesn't work with XAMPP

I created the project at the address D:\xampp\htdocs\dashboard\optimizedphp (gulpfile.js). What kind of proxy should I use? I tried many, but after changing the

Insert And Retrieve Data in MySQL with $.post Noob Question

Trying to insert data into MySQL database with PHP. I don't want to refresh the page. The data isn't inserted when I press the Send Message button, but the data

PHP Array Conversion for Interview [duplicate]

I have an interview coming up and a previous interviewee posted that this question stumped them: we have this array: $input = [ 'item/id' =>

Why hidden input field values can't be empty

I'm using PHP form to send user registration data and then handle it with PHP form. I need to register a few user types such as "normal users," "admin users," "

The difference when using if statement true === something() vs something() === true [duplicate]

I've seen a lot of codes that places boolean in front, followed by comparison operator, and then the variable/function to test if (true === so

file_get_contents(): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request

I am getting the error Warning: file_get_contents(https://partner.uat.shopeemobile.com/api/v1/item/categories/get): failed to open stream: HTTP request failed!

Slim\Exception\HttpNotFoundException

I'm creating a new Slim project and getting the following error: Slim Application Error: The application could not run because of the following error: Error De

Slim\Exception\HttpNotFoundException

I'm creating a new Slim project and getting the following error: Slim Application Error: The application could not run because of the following error: Error De

PHP idea about seat booking system?

I have to make a simple bus seat reservation/booking system with PHP backend. Currently I have done the interface just by using html and css as you can see from

Symfony process run throws exception - executing on command line works

I have an issue with generating PDF files using LaTeX. The solution is created with the Laravel framework (version 8). I installed a new "Windows 2019 Datacente

Laravel Collections. Is there some kind of assertStructure method?

I'm writing tests and I want to assert, that a returned collection has some specific structure. For asserting jsons I'm using assertJsonStructure() method on

Decimal quantity step for specific product categories in WooCommerce

I would like to adjust quantity step for specific product categories to allow decimal numbers (0.5 steps specifically). A bit like in Set quantity minimum, maxi

xampp unable to determine IP address of

I want to run php file in xampp I must use php for hackers-on, but xampp will not work at all providing error messages, which: xampp manager/osx Foos-MBP p

carbon generated datetime not stored correctly into the database

I have a tv_shows table where i'm trying to store the start and end datetime of each tv show. this is my migration: Schema::create('tv_shows', function (Bluepri

phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)

I keep getting the following errors with mysql connection through XAMPP and I don't know what to do: That's the code in the config.inc.php <?php /* * Th

How to downgrade or install a specific version of Composer?

I'm getting the following error in a project I'm setting up: You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you u

Is this Mysql Bug? About SELECT ... FOR UPDATE lock_mode X insert intention

have a table struct is id, aid, ...... the aid is an index(a type of int) trx1 and 2: begin; trx1: select max(id) from a where aid = 10 for update; trx2: sele

Laravel update hasMany relationship using saveMany

As the title suggests, i'm trying to update a hasMany() relationship. I have a Contacts and a ContactsProperties model in my application. Contacts can have man