Old 03-04-2007, 08:08   #1 (permalink)
RaelRode
Designers are strange :)
 
RaelRode's Avatar
 
Join Date: Jan 2007
Location: Shrewsbury, UK
Posts: 1,735
Send a message via ICQ to RaelRode Send a message via AIM to RaelRode Send a message via MSN to RaelRode Send a message via Yahoo to RaelRode Send a message via Skype™ to RaelRode
PHP help please...

PHP Code:
echo("$row[username]<input type="checkbox" name="$row[id]" id="$row[id]" value="$row[id]" />"); 

This is part of my PHP file which deletes things from a database. But this shows all the items in the database table but I need to get a submit button in there. ut if I put it in that echo it will appear after every item?? How can i get a button in there??


Thanks in advance.
  Reply With Quote
Old 03-04-2007, 08:34   #2 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,130
That's in a loop, (probably a while) just add the submit after the loop has finished.
__________________
George Smith - a vain attempt to get higher on google for my name

  Reply With Quote
Old 03-04-2007, 10:41   #3 (permalink)
dtrenz
blam blam
 
dtrenz's Avatar
 
Join Date: Aug 2006
Location: ann arbor, mi usa
Posts: 527
but you are using double-quotes as string delimiters and enclosing in quotes but without escaping them. but you should listen to stickmus but put a submit button after the loop but. but.
  Reply With Quote
Old 03-04-2007, 16:16   #4 (permalink)
gk
geek
 
gk's Avatar
 
Join Date: Oct 2006
Location: *.everywhere
Posts: 204
Send a message via ICQ to gk Send a message via AIM to gk Send a message via MSN to gk Send a message via Yahoo to gk
someone need to review the basics.
  Reply With Quote
Old 04-04-2007, 06:42   #5 (permalink)
RaelRode
Designers are strange :)
 
RaelRode's Avatar
 
Join Date: Jan 2007
Location: Shrewsbury, UK
Posts: 1,735
Send a message via ICQ to RaelRode Send a message via AIM to RaelRode Send a message via MSN to RaelRode Send a message via Yahoo to RaelRode Send a message via Skype™ to RaelRode
damn. Oh well thanks. Ill go and stick it in now.
  Reply With Quote
Old 22-04-2007, 13:22   #6 (permalink)
martinaz23
Registered User
 
Join Date: Apr 2007
Posts: 18
Send a message via Skype™ to martinaz23
i had the same prob. thanx for the answers
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8