![]() |
| ||
| error in displaying results. hi, this is a snippet of my codes, <td><a href="editFunction.php?ID=<?php echo $contact['ID']; ?>">update</a></td> after clicking "update", the ID will be passed to the editFunction.php page. editFunction.php <?phpwhy aren't my results displaying out in the respective fields except for ID? where do i start debugging? Thanks alot. |
| ||
| Re: error in displaying results. because contact contains the number of rows returned by the query. change: $contact = mysql_num_rows($result); to $contact = mysql_fetch_assoc($result); |
| ||
| Re: error in displaying results. using this wll help you. actually mysql_assoc is used to retrive resuts form while($row = mysql_fetch_array($result, MYSQL_ASSOC)) |
| ||
| Re: error in displaying results. i don't think he needs the while loop because he is updating a specific row. i use mysql_fetch_assoc() all the time. works perfectly. you can also use mysql_fetch_array, they complish the same thing. |
| ||
| Re: error in displaying results. use mysql_fetch_array .......... for mysql_num_rows........ |
| ||
| Re: error in displaying results. ah, thanks alot. PROBLEM SOLVED :) |
| All times are GMT -4. The time now is 6:52 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC