Category "php"

Docker merge containers [closed]

I have running multiple containers separately which connected to each other using defined network in docker-compose.yml and my application is

Converting HTML User Form input into .sql file that is in the same folder Using PHP (Question)

The reason why I am asking this question is because everyone seems to say to create a database using myphpadmin or mysql which i am having great trouble trying

Checkbox to show hide div .... on another page [duplicate]

This code works well for results on the same page. I've been looking around and cant find what i want...what i want is to see the results on a

How to enforce snake_case for properties with PHPCS?

I am trying to find rule which will enforce ONLY properties to be in $snake_case I have this for CamelCase: <rule ref="Squiz.NamingConventions.ValidVariableN

'No such file or directory' when connecting to MySQL Server in Google App Engine in PHP

I am trying to connect to my Google Cloud SQL instance with PHP (I am using PDO). When running my PHP file (from in the Google Cloud terminal), I receive the fo

Laravel application on Heroku, 419 page expired when try to login/register

I set up my Laravel 8+ application on Heroku.com. Almost everything works perfectly, but when I try to register/login I got the "419 | Page Expired" error. I am

SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 102 [closed]

I am receiving the error of SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 102 i

How can I assign a JS function to a list of tag that are generate with a loop?

I have a loop in my twig file : {% for item in listItem %} <h2 class="title" id="name-id"> ID {{ item.getRobotName() }}</h2> <p id="latbot" data-

"Edit with elementor" button missing

I've got a site hosted on altervista.org that works with WordPress 5.9.3. I use Elementor for my pages. I've recently installed a plugin called "Redirection", a

I get this error: Attempt to read property "Username" on null, when trying to display the username [duplicate]

I am trying to display the Username on the web page, but I keep on getting the error Here is my blade template @extends('layouts.app') @secti

Redirect wordpress website to another site

I moved my wordpress website with updraftpluse backup plugin to another domain and now when I open new domain website redircet to Previous domain. what can I do

PHP str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Dear all Iam getting this error on while run my app. Here below i attached the image file for the code that shows error {"data":[ ["omron","<span class=\

Preg_match function in PHP 8.1 does not work properly

I am using the preg_match function in PHP 8.1, but unfortunately, this function does not give me any output. I am looking for @extends('admin.layouts.app') in m

Go to a precedent page in a php site

I'm creating a simple php program and I'm trying to find a way to be able to go from the page 2 back to the page 1 with a button. I tried by making a button in

PHP array filled by a MySQL query [closed]

I need to fill multiple different arrays by using a MySQL query. This would have up to 16 different arrays. I want to specify each array with

Laravel Store , corrupted or not all are saved on database

public function patient_aprrovedischarge(Request $request, $id) { //get patient details $patientDischarge = DischargedPatients::where('id'

Symfony3.4: Exception occurred while flushing email queue: Expected response code 220 but got an empty response

Project in symfony 3.4 framework, all functions are ready, but an exception to get errors in the process is not working because swiftmailer is not working <p

Laravel Store , corrupted or not all are saved on database

public function patient_aprrovedischarge(Request $request, $id) { //get patient details $patientDischarge = DischargedPatients::where('id'

Laravel says application is in production but APP_ENV is local

My Laravel .env: APP_ENV=local APP_KEY=base64:7HjBWArUX989c8K87678687m2+6786876hs= APP_DEBUG=true APP_URL=http://localhost ... I get the following message if I

Spatie's Laravel Permission and policies don't work together

Excuse my English, it's from a translator. I am using Spatie to control the permissions of my application, for example, each module I have to see, create, updat