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:
  #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: 3
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: 3
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: 3
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: 3
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: 3
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: 4
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




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

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




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 7 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek