Welcome to qlcREQUEST['mainId']; $pageId=5; if($mainId!=""){$mainsql="select * from product where productId='".$mainId."'";} else{$mainsql="select * from dynamicpages where pageId ='".$pageId."'";} $mainrs=mysql_query($mainsql)or die(mysql_error()); $mainrow=mysql_fetch_array($mainrs); $pageContent=$mainrow['pageContent']; ?> Welcome to Astra Life Care