php - A button result in a mysqli_fetch_array cannot get through to the next page -
i have php page code passes variable of button next page:
<div><center><table> while($row = mysqli_fetch_array($result)) { echo "<td><form action= display.php method= 'post'><input type='hidden' name='projectid' value=".$row['projectid']."> <input type= 'submit' name= 'type' value= 'view/amend project details'></form></td>\n"; } echo "</table></div>";
i have on next page in table:
$projectid= $_post['projectid']; echo "<td>" . $row['projectname'] . "</td>";
i still cannot see problem, idea?
the problem you're trying use $row
on second page, , isn't set there.
you have either mysqli query again, or transfer value of $row['projectname'] through form, using hidden input field.
Comments
Post a Comment