Jump to content

Getting first row where x = y


slj90

Recommended Posts

Hello,

 

I have a table with 3 columns, ID, Name and Status. The data under the status column will either be 'complete' or 'in_progress'. 

 

How do I find out the ID of the first row which says 'in_progress'?

 

Do I have to search each row or is there a way to go straight to that row?

Thanks,

Link to comment
https://forums.phpfreaks.com/topic/285971-getting-first-row-where-x-y/
Share on other sites

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.