Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
manic

Ch5, P124, Sql Scripts For Pages

Recommended Posts

Hi

 

Chapter 5, page 124 offers some SQL commands to populate the pages table, available to download from your website. Please could you guide me to them, as I cannot find them?

 

Share this post


Link to post
Share on other sites

Sorry! Those don't seem to be there. I'll see if I can unearth them from my database and add them to the SQL file. In the meantime, you can just use lorem ipsum content. 

Share this post


Link to post
Share on other sites

Hi Larry

In chapter 5, the add_page.php page doesn't seem to be working correctly. What values do I enter into the database to add content. I tried entering numeric categories in the categories table, but it doesn't work, it keeps saying Please select a category, like there is a problem with the select menu. Please tell me what to enter in the database to be able to add pages of content via the add_page.php page. 

Share this post


Link to post
Share on other sites

In case it's not clear, the categories query would just be something like:

INSERT INTO categories (category) VALUES ('Common Attacks'), ('Database Security'), ('General Web Security');

Whatever categories you want to create. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...