Hi I would be grate ful if someone can help me with this one...............
I am using script that give echo out alternative colours for each row echo -ed on the db into a line.
When I check the radio buttons of one of these echo-ed line i want to set that info to a variable then as a session and then change the db on another page.
Can someone please help me here...i find it very difficult.
here are my error messages, althou i think it will not be the only problem...
Warning: Invalid argument supplied for foreach() in C:\Program Files\Apache Group\Apache2\htdocs\prop_manager\my_properties.php on line 51
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$prop_ID_tmp = $row['prop_ID'];
$sale = $row['sale'];
$price = $row['price'];
$number = $row['number'];
$street = $row['street'];
$city = $row['city'];
$row_color = ($row_count % 2) ? $color1 : $color2;
echo "<tr>
<td class='menu_names' bgcolor='$row_color'><input type='radio' name='select[{$row['prop_ID']}]' value='select'></td>
<td class='menu_names' bgcolor='$row_color'> $prop_ID_tmp</td>
<td class='menu_names' bgcolor='$row_color'> $sale</td>
<td class='menu_names' bgcolor='$row_color'> $price</td>
<td class='menu_names' bgcolor='$row_color'> $number</td>
<td class='menu_names' bgcolor='$row_color'> $street</td>
<td class='menu_names' bgcolor='$row_color'> $city</td> </tr>";
$row_count++;
foreach ($select as $prop_ID => $state)
{
if ($state!=$prop_ID_tmp[$prop_ID])
$_SESSION['prop_ID'] = $prop_ID1;