Jump to content

[SOLVED] Return query results in a grid format


sanderphp

Recommended Posts

Is it easy to return the results in a table style format rather than just spacing with a character in between them like I am currently doing?

 

if(count($results)){
//DISPLAY THE DATA
foreach($results as $r){	
	echo('<li><a href="single.php?id='.$r['id'].'">'.$r['date'].'</a> -- '.$r['total_distance'].' -- '.$r['total_time'].' -- '.$r['ave_speed'].'  -- '.$r['rider_id'].'<br><br>');

}
}else{
echo('Sorry - no results found');
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.