mardi 3 février 2015

Audio not playing in PHP vicidial

Trying to add audio to this - $location is audio URL:



if (strlen($location)>30)
{$locat = substr($location,0,27); $locat = "$locat...";}
else
{$locat = $location;}
if ( (preg_match('/ftp/i',$location)) or (preg_match('/http/i',$location)) )
{$location = "<a href=\"$location\">$locat</a>";}
else
{$location = $locat;}
$u++;
echo "<tr $bgcolor>";
echo "<td><font size=1>$u</td>";
echo "<td align=left><font size=2> $row[12] </td>";
echo "<td align=left><font size=1> $row[4] </td>\n";
echo "<td align=left><font size=2> $row[8] </td>\n";
echo "<td align=left><font size=2> $row[0] &nbsp;</td>\n";
echo "<td align=center><font size=1> $row[10] </td>\n";
echo "<td align=left><font size=2> $location </td>\n";
echo "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[13]\" target=\"_blank\">$row[13]</A> </td>";
echo "</tr>\n";

}


I have tried this. The player shows up but its not getting the URL. I do see the URL in the element when I inspect it.



echo "<td align=left><font size=2> <audio controls> <source=$location type=\"audio/mpeg\"> Your browser does not support the audio tag.</audio> </td>\n";


This is from the vicidail qc page


Aucun commentaire:

Enregistrer un commentaire