Thanks for your replies man but there really is no point posting any ASP as this is part of a shopping cart which working fine until I uploaded the database after tidying it up.
ok, Thanks... just for information the dates will only be 2009 and a bit of 2010 in the db and the user will be using date pickers that won't allow to pick before or after the lowest and highest...
Date vars here have been converted using strtotime.. all i'm really doing is checking if they are equal to or greater than and equal to or less than to...
I'm having problems detecting whether a range of dates overlap into others. The user picks a date range for booking, there are 3 date ranges which need to be checked low, high and peak...
sorry just seen the errors you posted. I would think that the table 'products' and or field name for 'id' is wrong as the SQL looks ok. Check the database for exact names you gave, its easy done....
edit:
this gives you the records in descending order and limits it to 4 records. So this should be the last 4 records, the records with the highest id's
I think i'm right in saying that a $_SESSION variable is only relevant to the specific browser session. So User B's session wouldn't know about User A's session.
OK, the image uploads ok, now I want to stick the filename into an existing row field. I don't get an error and the redirect works after the upload. Also I don't want to insert the whole...