PHP
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists PHP

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 25th, 2008, 07:01 PM
Dan Shirah
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Double results??

Hello all,

I am running the following queryI get the results I want, but for some
reason I am getting every valid result twice?

Any ideas?

$name_query = "SELECT caa44240002, caa44240003, caa44240004, caa442400018
FRM caa44240
WHERE caa442400018 = '$case_id'";
if ($case_category == "CJ") {
$name_query.="AND caa44240002 = 'C'
AND caa44240003 = '1'";
}
if ($case_category == "CF" || "MM" || "CT" || "TR" || "M" || "IN" ||
"C") {
$name_query.="AND caa44240002 = 'D'
AND caa44240003 = '1'";
}
$name_result = ifx_query ($name_query, $connect_id);
while ($name = ifx_fetch_row($name_result)) {
$party_name = TRIM($name['caa44240004']);
print_r($name);
}

print_r($name) will return:
John
John
Mary
Mary
Cindy
Cindy

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists PHP > Double results??


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 Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
Stay green...Green IT