query($query))
{
while ($row = $result->fetch_assoc())
{
$estudio = rawurlencode($row[‘Estudio’]);
echo “
echo “
“;
echo “
$id = $row[‘id’];
//Our loopdy doo for videos
if (isset($row[‘Video’]))
{
$vidurl = “http://ccmexicali.com/watch.php?p=$id”;
echo “Watch“;
echo “
“;
}
// If no video url is entered return N/A
else {
echo “N/A”;
echo “
“;
}
echo “
// Our Loopdy doo for audio
if (isset($row[‘Audio’]))
{
$audurl = “http://ccmexicali.com/listen.php?p=$id”;
echo “Listen
“;
}
// If no audio url is entered return N/A
else {
echo “N/A”;
echo “
“;
}
}
}
$result->close();
?>