Hello everyone, today I will write about an error on PHP 8, after an php 7.4 upgrade. After apache, php, etc I have noticed some errors in a few scripts like : Fatal error: Uncaught TypeError: mysqli_num_rows(): Argument #1 ($result) must be of type mysqli_result, bool given in … With a few minutes internet research I found that if(mysqli_num_rows($VARIABLE)==0) must become if(!$VARIABLE || ...
Today I’ve istalled on a server Windows Server 2019 a new version of Xampp with PHP version 8 and after a few tests I’ve noticed that mails are not sending anymore from my php scripts. After some research I found that phpmailer older versions like 5.2.14 that I am using from a long time ago is not compatible anymore with PHP8 . I have changed the script with the latest phpmailer 6.2 ve...
Today we are showing you how to create a php script for uploading, verify right file type before uploading, rename the file, get data from csv/excel file and then delete it . At first you need to create the html form, bellow is a basic one : <form method=’POST’ enctype=’multipart/form-data’> <input type =’file’ name=’file’ id=’fileR...
Hello boys and girls, today we are showing you how to create a dropdown select script on change for submit form, menu or other purpose, using html and java . We are using some div’s, some java scripting and you can use it in an any web page you like and for any purpose, if you are asking me I am using to generate some reports using three different variables in php . First you need to have th...
In you want to make a contact form or you want to make a survey and data to be sent to a MySQL database using PHP, you need to follow some basic steps . First you need to have support for PHP (Apache web server) and a MySQL database (PHPMyAdmin best for managing). For local use you can download Xampp and for web usage Cpanel is the easiest way to do it . After you have support for PHP and database...