Warning: Use of undefined constant PHP_SELF - assumed 'PHP_SELF' (this will throw an Error in a future version of PHP) in D:\webspace\chumphol.com\httpdocs\โกดังให้เช่า\index.php on line 8

Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in D:\webspace\chumphol.com\httpdocs\include\dbconnect.php:20 Stack trace: #0 D:\webspace\chumphol.com\httpdocs\โกดังให้เช่า\index.php(17): openDb('SELECT id, kodu...') #1 {main} thrown in D:\webspace\chumphol.com\httpdocs\include\dbconnect.php on line 20