answersLogoWhite

0

How do you Display The Error Messages in PHP?

Updated: 9/26/2023
User Avatar

Nishanthnish

Lvl 1
7y ago

Best Answer

To display your own defined error message in php simply echo error message.

To see errro message while query execution simply do mysql_error();

Or so enable syntax error and warnings use error_reporting(1) in the beggining of script.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you Display The Error Messages in PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is the purpose of Network Diagnostics to only display error messages?

No.


Is it true or false that the network diagnostics is to display error messages only?

False


Syntax errors display error messages during compile time?

Correct


How do you create an area of a webpage to display PHP results?

PHP code blocks start with <?php and end with ?>.


What is a parse error in php?

Parse error in PHP means that your script is invalid - it is not compliant with the programming language specification. After parse error script is no longer executed.


What do display properties do?

Establish consistent rules for exchaning data between applications and services loaded on the participating devices. Specify how data inside the messages is structured and the types of messages that are sent between source and destination. These messages can be requests for services, acknoeledgement, data messages, status message, or error messages.


What is the default error handling in PHP?

The default error handling in PHP is simply an error message with a filename, line number, and a small message describing the error. This information however, can be invaluable to increasing the security potential of a website or business.


If Excel cannot properly perform a calculation will it display an error value in the cell where you entered the formula?

That will depend on what the error is. Different problems result in a formula not being able to calculate. The appropriate error message for the situation will be displayed. Here are error messages you will see: #REF! #DIV/0! #NAME? #NULL! #N/A! #NUM! #VALUE!


What properties do application protocols display?

Establish consistent rules for exchaning data between applications and services loaded on the participating devices. Specify how data inside the messages is structured and the types of messages that are sent between source and destination. These messages can be requests for services, acknoeledgement, data messages, status message, or error messages.


How do you display PowerPoint Presentations using PHP?

PHP is not capable of displaying PowerPoint Presentations without another language that does support the display of PowerPoint presentations.Alternatively, you may turn the PowerPoint into a video and print another language capable of displaying videos using PHP.


What problems can PHP sleep cause when writing PHP code?

On earlier versions of PHP, when PHP sleep was called on Windows machines, it returned an error. The command can also be interrupted by the Operating System.


What are the Error occurs when no checkbox is checked in PHP?

Suppose you have checkbox in HTML from and and you are calling that checkbox by name in php , In that case in you don't check and hit submit , You will get Undefined parameter 'name_of _checkbox' As Error.