October 2009
Beginner
408 pages
7h 27m
English
If you need to, you can store the image itself in the database as a BLOB column. However, it's much more efficient to save the path to the image in the database instead. This means you need to do three things to save an image:
Add an image column to the entries table
Modify update.inc.php to save the image path along with the rest of the entry
Modify retrieveEntries() to select the new image column
Your next step is to add the image column to your entries table. You do this the same way that you added all the other columns to your table.
Navigate to http://localhost/phpmyadmin, open the simple_blog database, select the entries table, and open the SQL tab. ...
Read now
Unlock full access