Warning: file_put_contents(sites/nerkn/cache/containers/queryList/select_s_from_pages_where_pageTypeproject1.file.php): failed to open stream: No such file or directory in /home/erkintek/nerkl/inc/classBasic.php on line 247

Warning: file_put_contents(sites/nerkn/cache/containers/queryList/select_s_from_pages_where_pageTypeproject1.file.php): failed to open stream: No such file or directory in /home/erkintek/nerkl/inc/classBasic.php on line 247

Warning: file_put_contents(sites/nerkn/cache/containers/queryList/select_s_from_pages_where_pageTypeknowlagebase1.file.php): failed to open stream: No such file or directory in /home/erkintek/nerkl/inc/classBasic.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at /home/erkintek/nerkl/inc/classBasic.php:247) in /home/erkintek/nerkl/inc/layout.php on line 227
Groupping tableing data

Nerkn

Php developer, drupal, html, css, jquery, ajax, javascript
s:147:"

Groupping tableing data

It took around one hour to think and implement. Here is the think free code. I'll revive it with abstraction $i=0; $i_total =0; /* other continents */ $cities = mysql_results("select distinct countryFileName, co.countryName, continent from countrycity ci, countries co where ci.countryCode = co.countryCode and ci.countryCode !='US' and co.continent is not null order by continent, countryName "); $ceki = false; foreach($cities as $city){ if($ceki != $city['continent']){ if($ceki){//daha önce çalışmış for(;($i%4)!=0;$i++){ $output .= " "; if(($i % 4) == 3) $output .= ""; } $output .= "
"; $i=0; } $output .= "

"; $ceki = $city['continent']; } if(!($i % 4)) $output .= ($i % 8)?"":""; $output .= ""; if(($i % 4) == 3) $output .= ""; $i++; $i_total++; } for(;($i%4)!=0;$i++){ $output .= ""; if(($i % 4) == 3) $output .= ""; } $output .= "
 
";
";