--- C:\Users\3ncrypt3d\Desktop\bugs\index.php 2011-03-29 05:53:57.230468700 +0530 +++ C:\Users\3ncrypt3d\Desktop\bugs\index1.php 2011-03-29 05:01:53.149414000 +0530 @@ -395,7 +395,9 @@ AND ((a.expires >= '".date("Y-m-d H:i")."') OR (a.expires is null)) AND ((a.startdate <= '".date("Y-m-d H:i")."') OR (a.startdate is null)) ORDER BY surveyls_title"; - $result = db_execute_assoc($query,false,true) or die("Could not connect to database. If you try to install LimeSurvey please refer to the installation docs and/or contact the system administrator of this webpage."); //Checked + if($result = db_execute_assoc($query,false,true)){} + else + header("Location:./admin/install");//Checked $list=array(); if($result->RecordCount() > 0) {