How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Dutch Kim Your Own Question

Dutch Kim
Dutch Kim, Web Designer and JAVA programmer
Category: Programming
Satisfied Customers: 32
Experience:  Webdesign and JAVA programmer since 1997. (I do assist with homework, but I do not do your homework)
Type Your Programming Question Here...
Dutch Kim is online now
A new question is answered every 9 seconds

Im building a webcomic website in Dreamweaver. I have basic

This answer was rated:

I'm building a webcomic website in Dreamweaver. I have basic understanding of HTML, but I can't figure out how the site should function: I want the most current comic to come up on the index.html page, when navigating between the comics, the page elements surrounding the comic remain the same, and the comics are linked to an archive page. Would this be best built with CSS? Frames? Or...? is a good example of what I'm aiming for in terms of function.
The websites you link are using PHP, a much better choice when you want highly dynamic pages. What you probably need is someone who can modify your html code and make it php code, either with or without an underlying database.

PHP stands for php HTML preprocessor, and it is a server side script that generates your HTML, but has much more flexibility to get you there.
Dutch Kim and other Programming Specialists are ready to help you
Whoww, that is a fast accept. I did not expect that my answer would solve all questions immediately. If you have follow up questions, please ask them (and no, you do not have to pay extra for this).
Customer: replied 7 years ago.
Oh-- thanks for following up! (I'm new to this site; sorry-- thought it was a one shot deal). I'm on a budget, so I'm trying to do this myself instead of hiring somebody. I was wondering if it's possible/reasonable to be able to do this with HTML? Or, can PHP be written in Dreamweaver?
O no, you can keep asking as long as you want, till you have a satisfying answer.

Yes, it is possible to do it with HTML pages, but those will require a lot of javascript, which you have to force you users to use otherwise, it will fall back to default.

Do you have any programming experience?

A basic side could be as limited as an index.php and an archive.php, using a precoded way of coding you daily comic (for example 2009/1/17.gif) so that the only thing you have to do is to upload the images you want to display and the server will do the rest. If you give me some time tomorrow, I will give you some example code that you can use.
Customer: replied 7 years ago.
Oh, I see! Yes, the index.php and archive.php seems to be the standard for basic web comics and is what I would like to build. Unfortunately, I do not have much programming experience (my skills are more design based) but I might be able to understand the basics of PHP by looking at some code. Example code would be *awesome*. I can definitely wait until tomorrow for that. Thanks!!
Ok, It is not going to be a single post on this, primarily because I have to introduce you gently to php.

Let me start to point you towards a great resource to learn php basics:

When you make a page with php, you do not have to do the whole page in php, you can have most in html, and just add the additional flexibility of php at the spots you want. So, let assume that you have a directory structure with years, months in years and your daily webcomic on day of the month like in "images/2009/01/18.gif"

The following php code will then display the one for that day:

echo '<img src="images/'.date("Y").'/'.date("m").'/'.date("d").'.gif" border=1>';

the <?php and ?> lines indicate the beginning and end of a php block.
echo means that it is displayed to the page, and the section between the single quotes(') is what it will display. date("Y") is php speak for give me the current year. Same with date("m") and date("d"). date("m") is returned as a two digit number, as 01, and therefore your directory structure has to follow that for easiness. Dots are use to concatenate pieces of text. Have a look here for an example: