Remember what you did with the Powers field? Ditto all of that for the Enemies field. The only difference here is that if there are no values in the $charlist variable (list of all characters except the chosen character), the Enemies field will not show up on the form.
Enemies: (Ctrl-click to select multiple enemies)
; $value) { echo $value n ; } If the character entry form is not in Update mode, then the script will hide the Delete Character button (you can t delete a character you haven t created yet): Finally, the character ID is not passed through any form fields, so you create a hidden field to hold that information. You need that ID if you are going to update an existing character. Of course, if you are creating a new character, then the ID will be created for you when you insert all the appropriate data. > Summary Whew! This chapter covered a lot of ground. You learned about how to plan the design of your application, including database design. You learned how to normalize your data, so that it can easily be linked and manipulated. You created a brand new database for your Web site and started building your Web site by creating tables and creating the Web application needed to access and update those tables. Congratulations! You just created your first, fully functioning Web application with a relational database backend. (That s going to look so good on your resume.) This chapter is only the beginning, however. With the knowledge you gained here, you can create almost any application you desire. Here are some examples of what you could do: . Content Management (CMS): Create a data entry systems that will allow users and administrators to alter the content of the Web site and your database without knowing any HTML. 323 Building Databases We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.
This entry was posted
on Tuesday, October 30th, 2007 at 11:14 pm and is filed under php .
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response , or trackback from your own site.
Leave a Reply