require_once('../../Connections/obc.php'); $sound = $_GET['sound']; $audio_id = $_GET['audio_id']; $video_id = $_GET['video_id']; mysql_select_db($database_obc,$obc); if ($sound != "off") { $sql= "select * from tb_healing_bgsound where used = '1'"; $result = mysql_query($sql, $obc) or die(mysql_error()); $record = mysql_fetch_array($result); $bgsound = "../../admin/room/healing/bgsound/files/$record[filename]"; } if ($audio_id != "") { $sql1= "select * from tb_healing_multimedia where mul_id = '$audio_id'"; $result1 = mysql_query($sql1, $obc) or die(mysql_error()); $record1 = mysql_fetch_array($result1); if ($record1[url] == "") { $multimedia = "../../admin/room/healing/multimedia/files/audio/$record1[filename]"; } else { $multimedia = $record1[url]; } } else if ($video_id != "") { $sql1= "select * from tb_healing_multimedia where mul_id = '$video_id'"; $result1 = mysql_query($sql1, $obc) or die(mysql_error()); $record1 = mysql_fetch_array($result1); if ($record1[url] == "") { $multimedia = "../../admin/healing/prayer/multimedia/files/video/$record1[filename]"; } else { $multimedia = $record1[url]; } } $sql2= "select * from tb_healing_info where healing_id = '1'"; $result2 = mysql_query($sql2, $obc) or die(mysql_error()); $record2 = mysql_fetch_array($result2); $sql3= "select * from tb_healing_multimedia where type = '1'"; $result3 = mysql_query($sql3, $obc) or die(mysql_error()); $sql4= "select * from tb_healing_multimedia where type = '2'"; $result4 = mysql_query($sql4, $obc) or die(mysql_error()); ?>