Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can definitely start that way but I guess it all depends on what your end goal is. If you simply want to be able upload your comics to the /images/ directory and have the script display thumbnails and links, then you are good... but if you think you'll ever want more functionality than I would recommend at least working from a database. For example it would be quite easy to store information about how many times each comic thumbnail was clicked on, or perhaps the screen resolutions of the people visiting and looking at the comics so you can then adjust the size of your comics accordingly. Just a couple of ideas, but might be worth your time.</p> <p><strong>EDIT:</strong> Here is a sample table structure just to give you some ideas to start with.</p> <pre><code>cartoon_id int(11) auto-increment primary title varchar(32) filename varchar(32) description varchar(256) num_views int(11) last_view_dt datetime order tinyint(3) </code></pre> <p>You could get fancy and setup a second table that you insert the view information into (date, time, ip_address, comic, etc) and could generate some fairly interesting stats.</p> <p>Sample data would like the following:</p> <pre><code>cartoon_id: 1 (would be generated automatically) title: "Awesome Man!" filename: "images/cartoons/awesomeman1.jpg" description: "This was my first cartoon, created in 2002, etc..." num_views: 2300 (this would setup to just auto increment when viewed) last_view_dt 2012-07-21 order 1 (could use this to determine the order in which comics are displayed on the thumbnail page) </code></pre> <p>Could go on and on but I think you get the point.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload