PhpDig.net

Go Back   PhpDig.net > General Forums > Coding & Tutorials

Reply
 
Thread Tools
Old 02-11-2006, 06:48 PM   #1
tiger007
Green Mole
 
Join Date: Feb 2006
Posts: 1
Arrow probleming outputing html inside while loop

wrote the script but do not know how to place the html code for the form control(checkbox) i get errors!! could u tell me how to place the html inside the while loop?thanks

Code:
<?
.....
......
$query  = "SELECT id,filename, artist, album,title FROM wimpy";
$result = mysql_query($query);

while($row = mysql_fetch_assoc($result))
{
    echo "Id : {$row['id']} <br>" .
         "filename :{$row['filename']} <br>" .
         "artist : {$row['artist']} <br>" . 
         "album : {$row['album']} <br>" .
         "title : {$row['title']} <br><br>";
 
//error below here==> error
echo "
<input
                        type="checkbox" name="Id" value="{$row['id']}"></td>
                        <td bgcolor="#C0C0C0"><a
                        href="javascript:newWindow('./player/ram4.php?sid={$row['id']}')"><img
                        src="images/Speaker.gif"
                        alt="Listen to this Song" border="0"
                        width="16" height="16"
                        longdesc="Listen to this Song"></a>&nbsp;{$row['title']}                         </td>
                        <td bgcolor="#C0C0C0">{$row['title']}</td>
                        <td bgcolor="#C0C0C0"><a
                        href="javascript:newWindow('RateSong.asp?SongID={$row['id']}')"><img
                        src="images/RatIt.gif"
                        alt="Rate This Song" border="0"
                        width="100" height="22"
                        longdesc="Rate This Song"></a></td>
                        <td align="center" bgcolor="#C0C0C0">0&nbsp;</td>
                        <td bgcolor="#C0C0C0">coming Soon <!-- <a href="../site.php?songID=1&Song=Atash">Read </a>| <a href="../Members/WriteLyrics.php?SongId=1&Song=Atash">Write</a> --> </td> ";

} 


?>
tiger007 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spidering inside a cluster. mdavila Troubleshooting 0 11-30-2005 11:54 AM
infinite loop when indexing sub-domain janhsh Bug Tracker 1 05-26-2004 05:55 PM
PhpDig - Loop Charter Feedback & News 0 03-16-2004 05:20 AM
Indexing links inside hosts bazarin How-to Forum 3 02-23-2004 10:35 AM
Indexing all HTML-Comments Rolandks Bug Tracker 4 10-04-2003 07:38 AM


All times are GMT -8. The time now is 06:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.