Jump to content

Only show rows that don't have XYZ (urgent)


Mutley

Recommended Posts

Nope, it still finds the entry with the data in and shows it first, I don't want it to show the one with the data in the specific field.

[code]$query = "SELECT team_id, DATE_FORMAT(date,'%d-%m-%Y') AS dstamp, home, away FROM scores WHERE scorehome = '' ORDER BY date LIMIT 1";[/code]

So show:
team_id, DATE_FORMAT(date,'%d-%m-%Y') AS dstamp, home, away

Where
scorehome is EMPTY

Is what I want to do.

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.