Which direction moving forward ?

Which direction moving forward ?

srichardssrichards Posts: 1Questions: 1Answers: 0
edited October 2014 in Free community support

Im a neebie to Jquery and looking was happy to see DataTables as an option to code with.
Im unsure of which direction to take though for the processing of a simple static array into DataTables.
Any help on the best way to progress as a pointer would be great.

Si

echo'<table style="height: 600px; width: 600px;" border="0" cellspacing="10" cellpadding="0" align="left"><tbody><tr><td>COUNTRY NAME</td><td>COUNTRY CODE</td><td>CITY NAME</td><td>CITY PREFIX</td></tr>';
foreach($results as $country){
        foreach($country->cities as $city){
            $match = $country->country_name;
            echo '<tr><td>'.$country->country_name.'</td><td>'.'+'.$country->country_prefix.'</td><td>'.$city->city_name.'</td><td>'.$city->city_prefix.'</td></tr>';
        }
}
echo '</tbody></table>';

Answers

This discussion has been closed.