PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old August 16th, 2002, 02:07 PM
chinni chinni is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 58 chinni User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
form fields

Hello,

I display some fields from a table on a form and then i deleted the records from the table manually.Now, when i run the form again, i dont see the records but i see the empty form fields(textboxes, check boxes and so on..).How can i avoid this?

Many thanks

Reply With Quote
  #2  
Old August 16th, 2002, 02:29 PM
D1NGO D1NGO is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 221 D1NGO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: form fields

well if i understand correctly, you only want to display a form that has info from a databas, but only want to show ones that have information in them right?
if so, you could do a lil something, like so:
php Code:
Original - php Code
  1.  
  2. if($row['column'] == '')
  3. {
  4. }else{
  5. echo "<input type="text" name="something">
  6. }

and so on...

Reply With Quote
  #3  
Old August 16th, 2002, 02:51 PM
chinni chinni is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 58 chinni User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: form fields

No, you understood me wrong.well, lemme tell you in detail.I have five records in a table.I displayed all of them on my form.so far itz fine.Now, i deleted those records from the table manually.Now when i run the form, i would like to see it blank as there are no records in the table but unfortunately i see the blank text boxes.I want to avoid this.How can i do it.Hope i expressed myself clearly.

Reply With Quote
  #4  
Old August 16th, 2002, 03:01 PM
D1NGO D1NGO is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 221 D1NGO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: form fields

hrm, im still getting the same interpretation of it..

maybe if you post your code it will help a little bit

Reply With Quote
  #5  
Old August 16th, 2002, 03:12 PM
chinni chinni is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 58 chinni User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: form fields


hmm...I'm really surprised.

well, i hope this would be clear.

1.I have a table with some records in a database .
2.I am trying to display all the records from my table on a form.

So far everything is fine.

3.Now, i deleted the records from my table.

4.What do you think my form would look like when i run the form again, as far as i know it would be blank because there are no records in my table.

5.BUT, Unfortunately, i see "EMPTY" text boxes on my form.

Though it does'nt display any records from my table, i still see those ugly empty form field(Text box).I want to avoid this empty stuff.

I hope you understood me.

Reply With Quote
  #6  
Old August 16th, 2002, 11:00 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: form fields

and why don't u try that code that dingo posted...

i am positive that this is what u want...

Reply With Quote
  #7  
Old August 16th, 2002, 11:04 PM
alamsie alamsie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 13 alamsie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: form fields

yes..what dingo is saying is what u want..u should try it

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > form fields


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway