Category "php"

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

Getting an average rating of a TV show using average ratings of its seasons from ratings table (Laravel 9)

I have 3 tables: shows, seasons and ratings. I would like to get average ratings of specific seasons and then make an average of this for every show and sort th

How to make a cookie, that is random, and won't change once the user comes back (can't be PHPSESSID= because im running node.js)

I'm trying to create a cookie that acts like a PHPSESSID but is JavaScript, I would just use PHP but i'm running node so that is impossible. The hope is that yo

401 when fetching Discord channel messages using RestCord

I'm using Restcord ( Restcord.com ) to connect to Discord. I'm using OAuth instead of Bot use RestCord\DiscordClient; $token = $_SESSION['access_token']; $disco

Codeigniter set_checkbox() keeping checked state

I have this code in my view: <input type="checkbox" name="test[]" value="1" <?php echo set_checkbox("test[]", "1") ?> >test1 <input type="chec

RestFul API For Delete And Update Get 403 Forbidden Codeigniter 4

Remember this is codeigniter 4. I need help in here. I am learning to implement about the RestFul API in codeigniter 4. Below is my detail code. Routes : $route

is there a way assign IF statement or Switch Case to a variable

I am trying assign grades for input integers. But I found it difficult to complete the code. Is there any other way to do the below code such that it will give