In your while loop, you iterate over all entries in the supplier_stats table.
For every iteration, you output "&lt;p&gt;Insurance Expires ! ....
You probably do not want to do that.
Edit your query to only select the entries that will expire within your range.

Example:

SELECT * FROM supplier_stats WHERE insurance_date &gt;= yourDateToCompareTo


Depending on how you did set up your Database, insurance_date may be of 'MySQL Type DATE or String or even Integer. Depending on that, you have to make the Comparsion to check if the date is close to your expiration range.

After your loop (closed by }) you still use the $info in your if ($info['insurance_date'] which will only use the LAST entry in your table.

This is however a very, very basic Question and i'd advise you to read up on some very basic beginners tutorials which can be found easily using an internet search engine.

basic date comparsion for expiration checking
I'm looking for a reasonably cheap point-and-shoot camera that can take a lot of abuse.  Think rain, mud, occasional falls from head height, etc.

To make it easier, I really don't care too much about special features, zoom, or the quality of the photo.  As long as it's reasonably viewable at the end, that's good enough for me.

I'm aware of the Olympus µ cameras, but they still try to pack in the features and that drives up the price.

Any suggestions?
