Jump to content

[SOLVED] if/else question


secoxxx

Recommended Posts

could you give more information as to what your requrement is ?

 

There is one suggesstion, not a solution. maybe it will help

 

Try changing your logic to this

 

write a query to get the data in the ascending order [with respect to some field like id or time - which we know, whose data will be in some definite order.]

 

get the data into an array, and do the processing for all elements, till you reach the last element.

 

when you reach the last element, echo ('NEW!');

 

 

or,

 

if you want to detect the last row of the table, then sort the query in descending order with respect to some field like time, id etc

 

Regards

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.