SunQuest
           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 20th, 2002, 10:48 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
Combining two programs

Hello,

I'm getting confused with the array.I did them separately and it is working fine.will somebody pls help me to combine these two programs:

Handset.php
------------
if ($HTTP_POST_VARS){
$cnt = count($HTTP_POST_VARS['id']);
for($cntr=0;$cntr<$cnt;$cntr++) {

UPDATE STATEMENT followed by ibase_query
select statement
Field headings
<?php
$counter=0;
$old_values=null;
While statement to fetch all the fields
?>
Here all the form fields(array)

<?php

$old_values.=' <input type="hidden" name="id['.$counter.']" value="'.$row->HS_ID.'">
';
$counter++;
}
?>
</table>
<?=$old_values?>
-----------------------------------------------------
STIM.PHP
---------
if ($HTTP_POST_VARS){
$cnt = count($HTTP_POST_VARS['id']);
for($cntr=0;$cntr<$cnt;$cntr++) {

UPDATE STATEMENT followed by ibase_query
select statement
Field headings
<?php
$counter=0;
$old_values=null;
While statement to fetch all the fields
?>
Here all the form fields(array)
<?php

$old_values.=' <input type="hidden" name="id['.$counter.']" value="'.$row->STIM_ID.'">
';
$counter++;
}
?>
</table>
<?=$old_values?>


My doubt is only with $old_values.=
because in each program, i used $row->......_ID
How can i set two id filelds(HS_ID, STIM_ID) in one step?

and the second is, how should my select statement should be??

I think the following is correct one:

$sql= 'select field1, field2 and so on ... from TBL1 inner join TBL2 on TBL1.id = TBL2.id;


I would be really greatful to somebody who can insert my code in the right way.
Thanking you in advance.


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Combining two programs


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 4 hosted by Hostway