note 21288 deleted from function.is-null by danbrown

From: Date: Mon, 15 Jun 2009 12:21:54 +0000
Subject: note 21288 deleted from function.is-null by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156883@lists.php.net to get a copy of this message
Note Submitter: thepissboy at hotmail dot com ---- After pulling out most of my hair weeding through really unintelligible crap: HERE'S AN EASY WAY TO ELIMINATE NULL VALUES FROM YOUR ARRAYS!! $result = mysql_query("SELECT * FROM someDatabase WHERE page_title != ''",$db); if ($myrow = mysql_fetch_array($result)) { printf("%s\n", $myrow["page_title"]); } else { printf("Scratch head"); } It's all in the SQL Query line. The code says don't bring back anything that's empty!!!! So hopefully, some of us will be able to get back to being in a hurry.

« previous php.notes (#156883) next »