Hi All,

Here is one I can't figure out.

I run the following code:

$db = new db();

$sql = $db->Query("Select * From vw_leadstosend where 
        LeadsFilledThisInterval < TotalLeads") or $db->PrintErrors
();                                                       
$count = $db->Num_rows($sql);

echo $count."<p>";
                                          
$arr = $db->Fetch_array($sql);
                                                          
foreach($arr as $key=>$value){
   echo $key." => ". $value. "<br>";    
}
exit;

Now, $count returns 2 record, however only one is being returned in 
the foreach loop.

Can anyone shed some light?

Thanks,

Greg





------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hu5e944/M=362131.6882499.7825260.1510227/D=groups/S=1705375618:TM/Y=YAHOO/EXP=1124473975/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to