I also learned that there are not yet any capabilities to store images in a database, so in the database, you just store the link to the image, where it is stored on your server. Here is a good website for details about having images in a database.
Connect File:
- Don't put it into a public folder, or other people can hack into it.
- "../" means go up a folder, so you can save it as "../connect.php"
- Elements: name (i.e. "test"), Location (i.e. "localhost" or "127.0.0.1"), Password (i.e. "password")
- "$" means variable
- Require vs. require_once - difference is how many times they try to connect to DB
No comments:
Post a Comment