I did and you were right, it did add the code. the only problem is I got this message now: fatal error: Uncaught Error: Call to a member function select_db() on null in /homepages/24/d812057846/htdocs/xxxxx.com/espantoon_detail.php:37 Stack trace: #0 {main} thrown in /homepages/24/d812057846/htdocs/xxxx.com/espantoon_detail.php on line 37