View Single Post
Old 02-01-2009, 05:21 AM  
Bird
Confirmed User
 
Bird's Avatar
 
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
many thanks, I can get what i need from here. It was the for $i count I was looking for ($date[$i] . $time[$i];) it seemed everything else was rewriting the array key.

$a = array (date1,date2,date3 ) ;
$b = array (time1,time2, time3 ) ;

for($i=0;$i<= count($a);$i++)
{
$string = $a[$i] ." ". $b[$i]."<br>";
echo $string;
}



Quote:
Originally Posted by Fredde View Post
Do a for loop instead!
for($i=0;$i<= $numrecords;$i++)
{
$string = $date[$i] . $time[$i];
}
__________________
ICQ:268731675
Bird is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote