This is a common problem for those of you who are new to coding. While coding we often make some syntax mistakes.
To fix this error, you should carefully review the string and make sure that all quote marks are properly escaped with a backslash () if needed. You should also check for any other special characters that may be causing the error.
Take for example
<?phh
echo "India"
?>
Here I forgot to put a semicolon, for this reason, my code won't run. If you put error_reporting(0) the page will show white.
I think it's better not to error_reporting(0).
That's why I am saying this Because some warnings remain that we never see.
Take for example
<?php
$a=2;
if($a==2)
{
$b="My Html";
}
echo $b;
?>
Here if the value of $a is 2, Then There is no problem. The problem will only happen when the value of the $a is something else.
The code will put the top of the page, Then catch all kinds of errors.
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>
Today we will learn how to verify email id while signup. it's very important for the real user. You ..
This is a common problem for those of you who are new to coding. While coding we often make some syn..
Warning: session start() [function.session-start]: Cannot send session cache limiter - headers alrea..
Before we use the PDO, we will know why we will use PDO.PDO Only supports object-oriented.It has man..
Deprecated: autoload() is deprecated, use spl autoload register() instead. How to replace this (my a..
getimagesize() is a PHP function that returns an array containing information about the size and typ..
Today we will know - How to login with otp in php. Here we will use php,mysql & ajax. Before tha..
Get the latest news and updates by signing up to our daily newsletter.We won't sell your email or spam you !