include '../config.php'; $folnam = 'Yoga' ; if (isset($_REQUEST['title'])) { $title = $_REQUEST['title']; $title = str_replace("-", " ", $title); } if ($title != 'Home') { if ($title != '') { $s_bg=mysql_query('SELECT * FROM mi_Yoga where title = "'.$title.'" order by id limit 1',$link); } else { $s_bg=mysql_query("SELECT * FROM mi_Yoga order by rand() limit 1",$link); } $s_bg1=mysql_fetch_array($s_bg); $id =$s_bg1['id']; $title =$s_bg1['title']; $english =$s_bg1['english']; $description =$s_bg1['description']; $procedure=$s_bg1['procedure']; $benefits =$s_bg1['benefits']; $precautions =$s_bg1['precautions']; $position =$s_bg1['position']; $img1 =$s_bg1['img1']; $img2 =$s_bg1['img2']; $idNxt = $id+1; $s_bgNxt=mysql_query('SELECT * FROM mi_Yoga where id = "'.$idNxt.'" order by id limit 1',$link); $s_bg2=mysql_fetch_array($s_bgNxt); $title2 =$s_bg2['title']; $titleN = str_replace(" ", "-", $title2); if ($titleN == '') { $s_bgNxt1=mysql_query('SELECT * FROM mi_Yoga where id >= 1 limit 1',$link); $s_bg21=mysql_fetch_array($s_bgNxt1); $title21 =$s_bg21['title']; $titleN = str_replace(" ", "-", $title21); } $idPrv = $id-1; $s_bgPrv=mysql_query('SELECT * FROM mi_Yoga where id = "'.$idPrv.'" order by id limit 1',$link); $s_bg3=mysql_fetch_array($s_bgPrv); $title3 =$s_bg3['title']; $titleP = str_replace(" ", "-", $title3); if ($titleP == '') { $s_bgPrv1=mysql_query('SELECT * FROM mi_Yoga order by id desc limit 1',$link); $s_bg31=mysql_fetch_array($s_bgPrv1); $title31 =$s_bg31['title']; $titleP = str_replace(" ", "-", $title31); } } $HeadT = "Yoga - ".$title." | Mugup Mobile Web App | Shlok Consultants"; $HeadD = "Yoga - Cool habits to stay fit."; ?> include '../header1.php' ?>