Jump to content

Problem with Audio embed


zed420

Recommended Posts

Hi All

Can someone please help me with this little puzzle. I'm trying NOT to display the audio controller I've succeed to an extand but it still shows the space where it sits. How can I get rid of it???

$query1 = "SELECT * FROM vehicle1 WHERE status1 = 'Pending'
ORDER BY id1 DESC LIMIT 1";
   $result1 = mysql_query($query1)or die(mysql_error());

    while ($row = mysql_fetch_array($result1))  {
    extract($row);
echo "<embed src=\"doorbell2.wav\"autostart=\"true\" loop=\"true\" controller=\"false\" id=\"doorbell2\" name=\"doorbell2\">
</embed>";


      echo "<tr>
	<td align=center>" . $row['id1'] . "</td>
	<td align=center>" . $row['dateTime1'] . "</td>
	<td align=center>" . $row['passType1'] . "</td>
	<td align=center>" . $row['noOfVehicle1'] . "</td>
        <td align=center>
	" . $row['custname1'] . "</td>
	<td align=center>" . $row['des1'] . "</td>
	<td align=center>" . $row['roomNo1'] . "</td>
	<td align=center>" . $row['tableNo1'] . "</td>
	<td align=center>" . $row['vehicleType1'] . "</td>
	<td align=center>" . $row['company1'] . "</td>
	<td align=center>
<a href=\"restCancel.php?status1=$status1&id1=$id1\"style=\"text-decoration:none\">
					" . $row['status1'] . "</td></tr>";
	}

Thanks

Zed

Link to comment
https://forums.phpfreaks.com/topic/140265-problem-with-audio-embed/
Share on other sites

That there is lack of spacing...  ::) Anyway's. I am new here. You can try this.

 

$query1 = "SELECT * FROM vehicle1 WHERE status1 = 'Pending' ORDER BY id1 DESC LIMIT 1";
$result1 = mysql_query($query1)or die(mysql_error());
while ($row = mysql_fetch_array($result1))
{
extract($row);
//Where's your opening table?
echo '
<embed src="doorbell2.wav" autostart="true" loop="true" controller="false" id="doorbell2" name="doorbell2" width="0%" height="0%">
</embed>
	<tr>
		<td align=center>' . $row['id1'] . '</td>
		<td align=center>' . $row['dateTime1'] . '</td>
		<td align=center>' . $row['passType1'] . '</td>
		<td align=center>' . $row['noOfVehicle1'] . '</td>
		<td align=center>' . $row['custname1'] . '</td>
		<td align=center>' . $row['des1'] . '</td>
		<td align=center>' . $row['roomNo1'] . '</td>
		<td align=center>' . $row['tableNo1'] . '</td>
		<td align=center>' . $row['vehicleType1'] . '</td>
		<td align=center>' . $row['company1'] . '</td>
		<td align=center>
			<a 
				href="restCancel.php?status1='.$status1.'&id1='.$id1.'" 
				style="text-decoration:none">
					' . $row['status1'] . '
			</a>
		</td>
	</tr>
	<tr>';
}	//And supposing you running more than one row you will need to display each in a new row and not all in one.
echo '	</tr>
</table>'; //Suposingly you also have a table we close it also.

Glad to help. As said. New here. I have actualy been on another forum for quite along time. PHP programming forum. They are a bunch of people who can not actualy program at all. I quit there due to the lack of people saying they are good and all but end up asking for help all the time.

 

Anyway's im alway's up for helping some one.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.