Tagged: PHP

500 Error with PDO Statement

I kept getting a 500 Error message after creating a new php script to process a form from a web page. The script was to process a set of instructions before inserting data in...

Use PHP to format date from MySQL

I needed to display a date correctly on a web page that was retrieved from a MySQL database. Although the date was inserted into the database with a British format of dd/mm/yyyy, it is...

PHP on page 301 redirect

I needed to redirect traffic from one page to another without using the .htaccess file. I also wanted to let any search engines know that may have indexed the file of its new location....