Hey, I'm not sure how difficult this but I have an array and would like to put it into and html table. I need to have two array strings per row, so if this were the array:
$array1 = array(
1 => 'one',
2 => 'two',
3 => 'three',
4 => 'four',
5 => "five",
6 => 'six',
);
Ve ben bu gibi bakmak için html tablo gerekir:
| one | two |
|three| four |
|five | six |
Bu benim kod:
$db = new Database(DB_SERVER, DB_USER, DB_PASS, DB_DATABASE);
$db->connect();
$sql = "SELECT ID, movieno
FROM movies
ORDER BY ID DESC
LIMIT 6 ";
$rows = $db->query($sql);
print '<table width="307" border="0" cellspacing="5" cellpadding="4">';
while ($record = $db->fetch_array($rows)) {
$vidaidi = $record['movieno'];
print <<<END
<tr>
<td>
<a href="http://www.youtube.com/watch?v=$vidaidi" target="_blank">
<img src="http://img.youtube.com/vi/$vidaidi/1.jpg" width="123" height="80"></a>
</td>
</tr>
END;
}
print '</table>';
i want to pus it on 2 columns Thanks!