Kod:
...
<?
mysql_connect( 'mysql.cba.pl', '*****' , '*****');
mysql_select_db("*****");
?>
<script>
var Users = [];
<?
$wartosc = $_GET['wartosc'];
$query = mysql_query("select * from ***** where ***** = '$wartosc'");
$x = 0;
while($rekord = mysql_fetch_array($query)) { ?>
Users[<? echo $x?>] =
[ '<? echo $rekord[3];?>', '<? echo $rekord[4];?>', '<? echo $rekord[5];?>', '<? echo $rekord[6];?>',
'<? echo $rekord[7];?>', '<? echo $rekord[8];?>', '<? echo $rekord[9];?>', '<? echo $rekord[10];?>',
'<? echo $rekord[11];?>', '<? echo $rekord[12];?>', '<? echo $rekord[13];?>', '<? echo $rekord[14];?>', ];
<? $x++; } ?>
</script>
<table id="tabela" width="90%">
<tr>
<th rowspan="2">Użytkownik</th><th colspan="11" align="center">Jednostki</th>
</tr>
<tr>
<th><img src="****" /></th>
<th><img src="****" /></th>
<th><img src="****" /></th>
<th><img src="****" /></th>
<th><img src="****" /></th>
<th><img src="****" /></th>
<th><img src="****" /></th>
<th><img src="****" /></th>
<th><img src="****" /></th>
<th><img src="****" /></th>
<th><img src="****" /></th>
</tr>
<script>
for( x = 0; x < Users.length; x++ ) {
document.write( "<tr>" );
for( y = 0; y < 11; y++ ) {
document.write( "<td id=\"edit\">" + Users[x][y] + "</td>" );
}
document.write( "</tr>" );
}
</script>
</table>
...
problem w tym że po uruchomieniu żadne wartości się nie wypisują ;/
ktoś wie dlaczego ?