未捕获的错误:调用未定义的函数mysql_connect() - 每次运行我的php文件时它都会显示此错误

Im using Windows 8.1, using xampp as a server im a newbie, learning PHP, i have this issue in connecting php to the database

; Windows: "\path1;\path2"
include_path=".;\xampp\php\PEAR"

also removed the comments from the php.mysql.dll

;extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client

kindly help me, solve this issue... :(

That's because mysql extension has been removed. Judging from that I would say that you are using an outdated lesson.

The new extension is mysqli and so, instead of mysql_connect, use mysqli_connect. Take into account that the parameters might be in different order for mysqli.