Hi,
In my script the {$a[0]}"; does not want to assing to $p1 at the $p1="{$a[0]}";
line.
[PHP]
$result = mysql_query("SE LECT * FROM hole ORDER BY a5");
$i = 0;
$a = array();
while($row = mysql_fetch_arr ay($result))
{
$a[$i] = $row['a5'];
++$i;
}
mysql_close($co n);
echo "{$a[0]} {$a[1]} {$a[2]} {$a[8]}";
/////////// hole 1 ////////////
$p1="{$a[0]}"; //// ************ HELP******
if ($p1=="on") /////Show not taken
$p1="on"; /////show taken
else
$p1="off";
[/PHP]
In my script the {$a[0]}"; does not want to assing to $p1 at the $p1="{$a[0]}";
line.
[PHP]
$result = mysql_query("SE LECT * FROM hole ORDER BY a5");
$i = 0;
$a = array();
while($row = mysql_fetch_arr ay($result))
{
$a[$i] = $row['a5'];
++$i;
}
mysql_close($co n);
echo "{$a[0]} {$a[1]} {$a[2]} {$a[8]}";
/////////// hole 1 ////////////
$p1="{$a[0]}"; //// ************ HELP******
if ($p1=="on") /////Show not taken
$p1="on"; /////show taken
else
$p1="off";
[/PHP]
Comment