Well it doesn't recognise the function mysql_connect(). I don't know php but if it's anything like Perl you need to include the appropriate library files to use certain functions. In perl it's a line like:
at the top of the file. Is there something similar in PHP?
OK, I just went to the PHP homepage and if you're using PHP5 then MySQL support is not compiled into PHP by default, nor is the MySQL library included. You'll need to get the library and then recompile PHP using the configure option --with-mysql
go here: http://uk.php.net/manual/en/ref.mysql.php
for more info