[snip]
$sql = "SELECT seat, alias FROM attendees";
$sql_result = mysql_query($sql,$connection) or die("Couldn't execute
query.");

$row = mysql_fetch_array($sql_result);
$myseat = 
array('70','71','72','73','74','75','76','77','78','79','80','81','82','
83','84');
$i = 70;

foreach ($myseat as $seat)
{
         if (($seat) == ($row[0]))
[/snip]

Jay you are not looping through each row as far as I can see. You fetch
the row array once, getting you one seat and one alias. You loop through
the $myseat array against the one row, and I think you should loop
through the $myseat array for each row...right?

Jay

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to