How to make columns in index.php? Now just show everything in one column. I want 3 or 4 columns with 10 rows something like that.
I'm using this code:
<?php
$url = file_get_contents('https://somesite.xml');
$xml = new SimpleXMLElement($url);
$data = $xml->entry;
for($i = 0; $i < count($data); $i++){
$title = $data[$i]->title;
$title = preg_replace('/[^A-Za-z0-9\-]/', '-', $title);
$title = preg_replace('/-+/', '+', $title);
$item = $data[$i]->content;
$a = preg_match_all('#src="(.*?)"#',$item,$isi);
$img = $isi[1][0];
echo '<br><a href="download.php?q='.$title.'"><img src="'.$img.'"title='.$title.' /></br>';
<br>s and float the anchor elements though.