Hi there,

I want to use a "select max(some_item) from db where item = 'something"
query.

How can i check or test if there is indeed a max(some_item) for a given
'something' selection given and when there's not an max(some_item) ??

I've tried everything like $sth->rows and such but it seems that the max()
functions ALWAYS returns a record, even when there's no max(some_item)

Thanks,

Paul



Reply via email to