zed420 Posted January 10, 2009 Share Posted January 10, 2009 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 More sharing options...
killah Posted January 10, 2009 Share Posted January 10, 2009 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. Link to comment https://forums.phpfreaks.com/topic/140265-problem-with-audio-embed/#findComment-733962 Share on other sites More sharing options...
zed420 Posted January 10, 2009 Author Share Posted January 10, 2009 You're name should be Magicman not Killah, Much apprecitation it worked Zed Link to comment https://forums.phpfreaks.com/topic/140265-problem-with-audio-embed/#findComment-733973 Share on other sites More sharing options...
killah Posted January 11, 2009 Share Posted January 11, 2009 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. Link to comment https://forums.phpfreaks.com/topic/140265-problem-with-audio-embed/#findComment-734802 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.