These are the codes i used and these are the errors i’m getting Answer class property should have visibility like public ,private ,protected so it should be like You can read here https://www.php.net/manual/en/language.oop5.visibility.php
Passing variables to the same include that appears multiple times
I’m trying to pass variables in an include that appears on a page multiple times. While the following sample may technically work, I’m sure there is a much better way of doing this. Any help would be appreciated. index.php _user-card.php Answer You can create data that you can use over and over ag…
Show checkbox checked in the table
I have a problem showing the selected check value in the table. Now I cannot follow my selected value to show the check values in each row in the table. For example below coding,I have the selected values following are true,false,true,false,true,false, I need to show these values in the checkbox, so I make th…
VideoStream external URL mp4 file in PHP
Please help me with this VideoStream because its not working. I have video link http://91.121.207.115/downloads/American.Traitor.The.Trial.of.Axis.Sally.007.BR.mp4 But its not playing in normal html5 …
Laravel 6 query related to searching events not showing result when some fields are empty and some not
i’m kind of new to laravel first time developing on it. My goal is to get some filtered events to show, the filters should all work together (‘filter 1’ AND ‘filter2’ ecc..) even when some are empty. The problem that i’m getting is that when my filter fields are empty the q…
MySQL database is not receiving any data in PHP
I created two classes: a class called index.php for a user to input data such as: name, email, phone number and address. And the other class called model.php, which must send the information that the user typed into the MySQL database. However, when a user enters the information in the graphical interface, an…
How to save call_user_func_array() function output
i am trying to make a static site generator which works with a great routing class. if (php_sapi_name() === “cli”) { foreach ($router->get() as $route) { $out = …
Insert Excel datas on mysql with php
I’m trying to insert excel datas in mysql with php, I have a code but it’s inserting only the first line off the archive and my archive has 3 lines. Someone knows how to help me? public function …
whitelist user using file_put_contents forms
<?php $filename = 'whitelist.txt'; if (isset($_POST['uname'])) { $uname = $_POST['uname']; file_put_contents($filename, '{"'.$uname.'"}'); if (empty($uname)) { header("…
What is the cause of this route-related error in my Laravel 8 application?
I am working on a Laravel application that requires user registration and login. Alter registration, the users have the possibility to replace the default avatar image with a picture of their choice. They should also be able to delete this picture and revert to the default avatar (default.png). For this purpo…