It will always return 1 as you're not incrementing $i within your loop - at the minute you're passing the function the number 0 and then adding 1 to it - your logic is flawed. You need to change your function:

I'd also advise using htaccess to rewrite your image locations as they are very messy with such scripts. E.g. turn image.php/coffee-bean.jpg?width=150&height=150&cropratio=1:1 into images/cached/xl/coffee-bean.jpg
(Note - you need to use the full image path on your rewrite rule - even if you have set a rewritebase!

Like many SEO things this is no exception - no one knows for sure :) Personally, I think it's down to how much a site gets updated with fresh content.

On a recentish static 5 page website a change to the main desc took nearly a week. On my personal wordpress blog, that get's updated every week or so (sometimes twice a week) the change takes a couple of days. However, on my twitter account, I post links to my blog, that I'm sure helps.

I'm sure PR comes into somewhere.

You also have the issue in that Google doesn't always use your meta description, as Google may see it as not relevant sometimes.

In summary, change your desc and wait, get a few links along the way can't hurt either :)

For the OrderItems table you may also need to note your business rules in relation to the product_id foreign key. E.g. with the above your order info screen would change if the original product id was altered. Some business rules require the product_id not to be stored and original info (E.g. if the price of product ID 22 changed, you wouldn't want this updating in past orders query).

Lol, you make getting a backlink from .gov and .edu sites so easy - in reality they are some of the hardest links to get. You need to be providing some serious quality and relevant content to get a link from such a site.

Please please don't get caught up in the whole Page Rank saga. At the end of the day it's a metric Google uses to asses the importance of yuour site. There are many examples of where lower Page Rank sites rank above higher PR sites. E.g. Google 'web design' and have a look at the PRs of the top 7 or so sites.

[QUOTE=evstevemd;1471557]
What are risks when uploading files other than limiting some extensions (like exe's)?[/QUOTE]

That also depends on how you're checking your extension. E.g. say you're getting the extension from the filename via $_FILES['myfile']['name'] using PHP's string functions, the value of $_FILES['myfile']['name'] can be faked. For images you can use [URL="