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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 6th, 2002, 06:59 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
transferring the control in while loop

Hello,

I am trying to update and also print all the records from my table.Now, I'm confused in placing my while loop with in my code.could some body tell me where exactly i've to place that.

Herez my code....

<?php

$sql = update statement;
$result = ibase_query($connection, $sql);
$db = select statement;
$abc = ibase_query($connection, $db);
while ($row = ibase_fetch_object($abc))

{

$text1=$row->TBL_FIELD1;
$text2=$row->TBL_FIELD2;
}---->>I placed here, so i'm only to veiw one record.I placed at the end of my form, but, it also prints each time the headers.
?>

Here is my field headings...

And here,

<td width="156" height="23" align="left" valign="top">
<p style="line-height:100%; margin-top:0; margin-bottom:0;"><FONT
face=Verdana><SPAN
style="FONT-SIZE: 10pt"><INPUT
name=text1 value = "<? echo $text1; ?>"style="padding:0;"></SPAN></FONT></p></td>

and so on ...as i've so many fields.

I want the heading to be printed only once and all the records from my table.

could somebody please help me.

thank you

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > transferring the control in while loop


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