Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/10/5083210/html/hhrs/hhcs/bmi_calculator.php on line 149

Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/10/5083210/html/hhrs/hhcs/bmi_calculator.php on line 150

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/content/10/5083210/html/hhrs/hhcs/bmi_calculator.php on line 150

Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/10/5083210/html/hhrs/hhcs/bmi_calculator.php on line 153

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/content/10/5083210/html/hhrs/hhcs/bmi_calculator.php on line 153
Problem with query SELECT * FROM patient WHERE username = ''

Fatal error: Call to undefined function mysql_last_error() in /home/content/10/5083210/html/hhrs/hhcs/bmi_calculator.php on line 156