Thanks, I have just realised where I was going wrong.
rst_AvailSeats['seat_number'] is a query from a recordset in dreamweaver.
This is the code Ihave now modified:
<?php
do {
?>
<?php
$seats = array();
$seats[$rows] = $row_rstAvailSeats['seat_number'];
?>
<?php
} while ($row_rstAvailSeats = mysql_fetch_assoc($rstAvailSeats));
$rows = mysql_num_rows($rstAvailSeats);
if($rows > 0) {
mysql_data_seek($rstAvailSeats, 0);
$row_rstAvailSeats = mysql_fetch_assoc($rstAvailSeats);
}
?>
I now have this array with seats 1 to 100 in it, but need to somehow pass these values into a 2d javascript array.
So the array would look something like this, with seat number indicated in the middle.
| 1 | 2 | 3 | 4 | 5 |
| 6 | 7 | 8 | 9 | 10 |
etc etc.. down to 100.
Please help
Kind regards