hallo, kheb nog een klein probleempje waar ik niet goed uitgeraak.
dit is wat ik nu op mijn scherm krijg.
die kstabs: abs 25 zou onderelkaar moeten staan ipv achter elkeer.
dit is de code die ik tot nu toe heb.
<?php
ini_set('display_errors', 1); // 0 = uit, 1 = aan
error_reporting(E_ALL);
$kstabs = array(1 => 'abs 25',
2 => 'abs 33',
4 => 'abs 45',
8 => 'abs 62'
);
include ("inc_connect_mysql.php");
$result = mysql_query("SELECT * FROM decorline2");
$resultkstabs = mysql_query("SELECT * FROM decorline2");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://
www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<table border="2" width="90%" align="center" bordercolor="#666666">
<tr bordercolor="#FFFFFF">
<td colspan="13" bordercolor="#FFFFFF"><h2 align="center">Decorline</h2></td>
</tr>
<tr bordercolor="#FFFFFF" style="font-size:10px" >
<th align="right">Afbeelding</th>
<th align="right">Decor</th>
<th align="right">Structuur</th>
<th align="right">Omschrijving</th>
<th align="right">Prijsgroep</th>
<th align="right">kantstroken abs</th>
</tr>
<?php
while (list($group, $reeks, $decor, $structure, $description, $prisegroup, $ral, $kleurindex, $kleuratlas, $images) = mysql_fetch_row($result))
{
echo("<tr bordercolor=\"red\" style=\"font-size:10px\">
<td align=\"right\"><IMG onClick=\"window.open('$images','kleur','width=500','height=1000')\" src=\"$images\" alt=\"$decor\" width=\"14\" height=\"18\" border=\"0\" align=\"left\"></td>
<td align=\"right\">$decor</td>
<td align=\"right\">$structure</td>
<td align=\"right\">$description</td>
<td align=\"right\">$prisegroup</td>
");
if($resultkstabs)
{
while ($row = mysql_fetch_assoc($resultkstabs))
{
echo '<td align=\"right\">kstabs: ';
for($i=0; $i<=8; $i++)
{
if(($row['kstabs'] & pow(2, $i)) and isset($kstabs[pow(2, $i)]))
{
echo $kstabs[pow(2, $i)] . ' ';
}
}
echo '</td>';
}
}
else
{
// mysql error
}
}
?>
</tr>
</table>
<body>
</body>
</html>
bedankt alvast