Category "php"

ErrorException Trying to get property 'nom_service' of non-object [closed]

pls help I tried the maximum ways but no result, I'm beginner in laravel!!! liste.blade.php <td> {{$data->candidature->dem

Remove certain elements from an array that fit a condition in PHP?

So i have an a array of numbers: $arr = [53, 182, 435, 591, 637]; All i am trying to do is loop trough each element and when a certain condition is true it sho

How to Show result after uploaded file in PHP

I have a script that uploads the video to a server, everything is correct but there is a problem, after the upload of the video to the server is completed it sh

Snyk False Positives for XSS in PHP

We've recently started using Snyk to perform code analysis, however have hit the stumbling block that the first scan is reporting many (>700) XSS vulnerabili

Pagination in PHP with N number of elements per page

I need a little bit of help. I have an XML file as a database. From it, I need to create a pagination with 25 elements per page with Next and Previous buttons,

How to upload & Save Files with Desired name

i am using this code to upload files(images to a folder) <form action='' method='POST' enctype='multipart/form-data'> <input type='file' name='userFil

Generate sales report using MySql and Php

I m looking for advices in report generating per client, per product, per salesman, in a given period, using mysql and php. I m currently working on an applicat

Validate form before move to next page

I have coded my own validation form. Is there anyway i can prevent page from submit to php (action="process.php" Method="POST") if form is not validated. I have

How to make link sharing in php

Videos come from a folder and are automatically displayed on my website. But I am having a problem at implementing share feature. All I want to do is when share

PHP how to convert UTF-8 to MUTF-8?

in PHP, how can i convert UTF-8 to MUTF-8? i am hoping i can lazily just get away with function utf8_to_mutf8(string $utf8):string{ return str_replace("\x00

How to turn string into json with php and whitespace and padding

I am struggling here. I have looked up many previous answers on this subject and nothing is working. I have the following string and can't figure out how to get

removing .php extension and creating dynamic url from htaccess

I have following code for hiding php extension and redirecting user to a non .php url if user adds a .php extension in url for example domain.com/about.php shou

SetaPDF Merger for Wordpress result with error “Headers already been send in”

I am using SetaPDF Merger and I am almost finished with my project to set it up for my WordPress site. But of course I run into trubble. I have a repeatable fie

Is there a way to delete an actual target item from the table using PHP, Jquery and Ajax request as i intend herein?

I have a PHP table whose data was streamed-out from the database using the foreach. However, i am trying to create a delete mechanism to it. Here is my table :-

Laravel Livewire Model set default value

I have a table that I am generating through an iterative loop. The issue is that there is an input field of type date. When I try to attach my livewire model, i

Trying to send data from query to another function

first i have two problem here the first problem when i run this query it gives me this Error //ERROR SQLSTATE[42S22]: Column not found: 1054 Unknown column '390

how to apply a text string in a variable with rename function

When using the PHP rename function I need to use text in a variable in the rename, but I can only get the rename to work when I manually enter the text, for exa

Error: Payfort Apple Pay service response error Failed to execute service?

I integrated Apple Pay service of Payfort using PHP but got error in response. Failed to execute service have applied all possible solutions including regenerat

How can I get parameters from a URL string?

I have an HTML form field $_POST["url"], having some URL strings as the value. Example values are: https://example.com/test/[email protected] https://exa

Knp Pagination in symfony 5

I installed "Knp Paginator" and everything works fine but if i try to do a search in the search bar (this search bar does not depend on Knp Paginator) i have th