Hi,
I am new to php and trying out this tutorial at :
http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/
Unfortunately I am getting the following error and can't seem to track down the reason:
Parse error: syntax error, unexpected T_PUBLIC in ../simpleCMS.php on line 56
My code for simpleCMS.php is as is in the tutorial link above.
FYI, my line 56 is the following line of code in simpleCMS.php
public function display_admin() {
Above this line is public function display_public()
Can anyone possibly see what I could be doing wrong and again, my code is the same code from the tutorial website and have downloaded the files that came with it?
Hoping someone can point me in the right direction.
Furthermore, I am using Mac OS X MAMP to run my Apache/MySQL Server locally. My other question is, when I using the following command:
mysql_connect($this->host,$this->username,$this->password)
is my hostname 'localhost' alone or do I also have to include port alongside the localhost?
Thanks again.