Topics in PHP

[SOLUTION] Fatal Error: Uncaught Error: Call to Undefined Function Mysql_connect()

If you are getting “fatal error: uncaught error: Call to undefined function mysql_connect()” in your PHP project, then do not worry. Because here, we will resolve the call to undefined function mysql_connect() error step by step. Solution: Call to Undefined Function Mysql_connect() To solve the Fatal Error: Uncaught Error: Call to Undefined Function Mysql_connect(), first of […]

Find Array Length in PHP

There are two main inbuilt functions, count() and sizeof(), to find an array length in PHP. There are other ways to count array length in PHP, but inbuilt functions are a more straight forward and effortless approach to find array length. Count Array Length in PHP count() and sizeof() both functions are inbuilt in PHP […]

How to Set Onclick Function in PHP

Onclick event is one of the most used events in any user interface. As all events on the website are related to UI, and PHP is a back-end language. So, we can not set the direct Onclick event of any PHP function. Wrong Interpretation of Onclick Event in PHP PHP is a popular open-source backend […]

How to Remove On-Page Errors in PHP

On-page errors, warnings, and notices are default in PHP for convenient debugging. However, while deploying on production, it is not a good practice to show on-page errors. On-page errors may provide loopholes of our website to hackers. Even more, it can break our website’s front end design. Here we are going to learn how to […]