Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-01-03, 03:39 PM
Junior Member
 
Join Date: Jan 2007
Posts: 1
kmetral is on a distinguished road
Exclamation deleting fields help

Here is my code

Quote:
$query = "SELECT * FROM playlist WHERE username = '".$session->username."' ORDER BY playlist_name ASC";
$result = mysql_query($query) or die(mysql_error());

if( mysql_num_rows($result)>0 ) {
$delplaylist = "DELETE";
print("<form name='form' action='$delplaylist' method='post'>\n");
print("<table style='width: 100%; border: 0px;'>\n");
print("<tr><td colspan='2'><font color='#0000FF'size='2' face='Verdana, Arial, Helvetica, sans-serif'><u>Borrar listas de musica:</u></font></td></tr>\n");
print("<tr><td><font size='2' color='#0000FF' face='Verdana, Arial, Helvetica, sans-serif'>Lista(s) de musica:</font></td><td><select name='playlist_id'>");
while( $playlist = mysql_fetch_assoc($result) )
{
$deleteplaylist = print("<option value='".$playlist['id']."'>".$playlist['playlist_name']."</option>\n");
echo $deleteplaylist;
}
print("</select></td></tr>\n");
print("<tr><td colspan='2' style='text-align:center'><input name='submit' type='submit' value='Borrar Lista' ></td></tr>\n");
print("</table></form>\n");
}
This is pretty much a music site where the user can create playlists. Here I'm trying to let the user erase the selected playlist the user chooses after the submit button is pressed. So far i have this code. Any help on doing that?

Last edited by kmetral; 2007-01-03 at 03:43 PM.
Reply With Quote
  #2 (permalink)  
Old 2007-01-13, 01:24 PM
Member
 
Join Date: Jan 2007
Location: SPb, Russia
Posts: 30
powerdesign is on a distinguished road
Default

this piece of code is not enough to help you.
and tell again, what do you want to get in final
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:33 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.