Hyperjase Posted July 16, 2008 Share Posted July 16, 2008 Hiya, I'm pretty newish to PHP, just embarking on broadening my horizons on what I know, messing and experimenting. I'm tryin to figure out a way of skipping an empty cell in MySQL ... basically I have a list of albums, and now and then, there is a blank entry, but it's still output as just a gap. How do I make it so that if it's empty, it ignores it and skips to the next one along? Hope that makes some sense! Link to comment https://forums.phpfreaks.com/topic/115101-solved-skip-entry-if-empty/ Share on other sites More sharing options...
ratcateme Posted July 16, 2008 Share Posted July 16, 2008 have a query like this SELECT * FROM `albums` WHERE `name` != ''; Scott. Link to comment https://forums.phpfreaks.com/topic/115101-solved-skip-entry-if-empty/#findComment-592032 Share on other sites More sharing options...
Hyperjase Posted July 16, 2008 Author Share Posted July 16, 2008 Perfect, that worked a charm, at first it didn't work but I didn't place it in the code correctly, working like a charm now! Thanks so much, I appreciate your help! Jason Link to comment https://forums.phpfreaks.com/topic/115101-solved-skip-entry-if-empty/#findComment-592051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.