1,463,055 questions
-3
votes
0
answers
33
views
What is the correct way to implement a M:N relationship in a PHP/MySQL web application? [closed]
I was wondering if THIS is the correct way to apply M:N in PHP. To be exact, in CRUD. My main request is if the structure is functional and safe to implement on my public website. So far it's project ...
-7
votes
0
answers
43
views
Is procedural PHP a good approach for user registration and login system good for begginers? [closed]
loginaction.php:
<?php
include "db.php";
session_start();
if($_SERVER["REQUEST_METHOD"] == "POST"){
$email = $_POST["email"];
$password = $_POST[&...
-3
votes
0
answers
42
views
How to implement a universal search filter in PHP OOP using MySQLi Prepared Statements and LIKE [closed]
I am trying to implement a universal search bar using PHP OOP and MySQLi prepared statements. The goal is to filter a user list by name, email, or surname using a single search input.
The Problem: The ...
1
vote
1
answer
42
views
Auto routing with modules in Codeigniter 4
im pretty new with CI4, i am trying to use the "auto routing (improved)" feature along with modules. i want to access controllers/methods inside modules like this:
https://example.com/...
-6
votes
0
answers
100
views
PHP: Passing encrypted data via URL [closed]
I have a secure message that I need to pass via query string to an external website. This does not have any connection to the same database or anything else. I am trying to encrypt the data, send it ...
Advice
0
votes
3
replies
98
views
inputs from fields on form output to print on image
Years ago I worked for a place where we had an application form that was done on our website. The fields, Name, Address, phone, etc were overlayed based on coordinates to a copy of the application we ...
Advice
1
vote
10
replies
144
views
Image upload to SQL PHP
After many hours of research I finally cracked the code to uploading images through POST and inserting them into SQL.
index.php:
Connect DB file to your index
require "db.php";
(prevents ...
-5
votes
0
answers
60
views
Laravel 11 + Nginx: 403 Request Timeout/Forbidden when using Xinax/laravel-gettext (works with artisan serve) [closed]
The Problem
I am running a Laravel 11 project with a Vue.js frontend on Fedora 43. The application runs perfectly when using 'php artisan serve'. However, when switching to a local Nginx + PHP-FPM ...
Advice
0
votes
1
replies
43
views
Plugin development for woocommerce : RFQ Broadcast Layer with Pincode Filtering
I’m working on extending the RFQ (Request for Quote) functionality in a WooCommerce-based multivendor setup using Dokan Pro.
"RFQ full form is Request for Quote where buyers can ask for quotation ...
Best practices
0
votes
1
replies
53
views
How to programmatically implement nested JSON-LD Schema for a biography database in WordPress?
I am working on a custom WordPress implementation for a celebrity biography site. I need to generate SEO-friendly JSON-LD markup dynamically for each post.
Specifically, I am struggling with the PHP ...
Best practices
0
votes
1
replies
109
views
Best approach for handling large file uploads and ZIP generation in Laravel?
I’m building a Laravel 12 folder organizer where users may upload large folders (many files / large sizes), and I categorize files by extension and generate a ZIP for download.
Current approach:
...
1
vote
1
answer
75
views
How to efficiently query nested JSON relationships (reacts_with, affected_by) without redundancy?
I am working with a structured JSON dataset where each ingredient contains relational metadata such as:
reacts_with
affected_by
compatible_with
A simplified structure is like this:
{
"...
0
votes
0
answers
96
views
Foreach loop on a multi-dimensional PHP array returns complete wrong results [duplicate]
I have a fairly straightforward MYSQL query which retrieves details from a sale and stores them in an array (I've simplified it by just using 1 saleid which has only 1 salesdetails row - other sales ...
1
vote
0
answers
65
views
Partial.ly API adding application_fee to Stripe PaymentIntent when using direct API Key (not OAuth)
Problem
I am building a custom WooCommerce plugin that integrates with the Partial.ly
API to create installment payment plans. I am following the official Partial.ly
documentation for creating a ...
Best practices
1
vote
4
replies
132
views
Why does my website randomly show a server error?
I am working on a travel booking website. It is working fine most of the time, but sometimes it suddenly shows a “We had a server error” message without any clear pattern.
This issue is not constant, ...