Posted by:
CyberSpatium
(---.hsd1.or.comcast.net)
"Try turning on... "short_open_tag = on"..... on the php.ini file" - no, this has nothing to do with your problem. You are getting this error because your are using the newest version of MySQL which uses the new
mysqli_connect to connect to the database, not the old
mysql_connect version.
Change this line:
$link = mysql_connect("localhost","root","1234"

;
To this:
$link = mysqli_connect("localhost","root","1234"

;
And change this line:
$db_selected = mysql_select_db("guestbook",$link);
To this:
$db_selected = mysql_select_db("guestbook",$link);
Also, if you are having probmels getting phpmyadmin to work too, open up your phpmyadmin config.ini.php file, and arround line 61 you will see this setting:
$cfg['Servers'][$i]['extension'] = 'mysql';
change this line to:
$cfg['Servers'][$i]['extension'] = 'mysqli';