| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Accredited PayPal World Seller|
|Form Row ID|
form method post
| 12:26 pm on Jun 9, 2010 (gmt 0)|
i'm unable to retrieve value of row id when clicking the submit button. The id was completely empty.
Could some one brief me on these issue?
while($row = mysql_fetch_row ($result))
// $row is array... foreach( .. ) puts every element
// of $row to $cell variable
foreach($row as $cell)
echo "<td class='td_rowhd'><font class=tdrow>$cell</font></td>";
echo "<td class='td_rowhd'><form method='POST' action='update.php?id=".$row['id'] . "'>
<input type='submit' value='Update Changes'></td>";
| 1:33 pm on Jun 9, 2010 (gmt 0)|
| 2:12 pm on Jun 9, 2010 (gmt 0)|
Hi there Chrissim,
I am curios as to why you are looping within a loop..
What are you trying to achieve? Because it looks like you want to grab data, edit, then update records according to the id number pulled in the first place...
First place to start is by turning on error_reporting to see what if any errors are being flagged:-
//rest of code
then trace each step as you get the data by echoing and exiting :)
| 4:53 am on Jun 10, 2010 (gmt 0)|
Hey thanks matthew1980, everything working now :)
| 7:10 am on Jun 10, 2010 (gmt 0)|
Hi there chrissim,
What'd I do? I assume there was a typo in the mix somewhere?
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved