HERE; //update: won t update yet, but set up

October 28, 2006 on 2:13 pm | In php |

HERE; $output .=

\n ?; return $output; } // end tToEditLook carefully at the forms for editing and deleting records. These forms containhidden fields with the table name, key field name, and record number. Thisinformation will be used by subsequent functions to build a query specific to therecord associated with that particular table row. Creating a Generic Form to Edit a RecordThe table created in tToEdit()calls a program called editRecord.php. This pro- gram accepts a one-record query. It prints out an HTML table based on the resultsof that query. The output of rToEdit()is shown in Figure 12.12. The rToEditfunction produces a very simple HTML table. Every field has a corre- sponding textbox. The advantage of this approach is that it works with any table. However, the use of this form is quite risky. The user should not be allowed to change the primary key, because thatwould edit some other record, which could have disastrous results. The operationIDfield is a foreign key reference. The only valid entries tothis field are integers corresponding to records in the operationtable. There s no way for the user to know what operation a particular integer isrelated to. Worse, she could enter any number (or any text) into the field. The results would be unpredictable, but almost certainly bad. I fix these defects in the smartRToEdit()function coming up next, but begin bystudying this simpler function, because smartRToEdit()is built on rToEdit().
Note: If you are looking for high quality webhost to host and run your jsp application check Vision jsp hosting services

WordPress database error: [Table './sandzak_com_-_blog/wp_comments' is marked as crashed and should be repaired]
SELECT * FROM wp_comments WHERE comment_post_ID = '500' AND comment_approved = '1' ORDER BY comment_date

No Comments yet

TrackBack URI

Sorry, the comment form is closed at this time.

Powered by cheap hosting