News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Richard Miller's Blog:
PHP needs a while-else statement
February 20, 2006 @ 07:39:24

In this latest entry on his blog, Richard Miller suggests that PHP needs a "while-else statement".

I think PHP ought to have a while-else statement. There is, of course, a while statement and an if-else statement, but a while() else statement would be perfect for returning a bunch of rows from a MySQL database.

There's a sample query that he gives that loops through the results from a SQL query to see if any of them match.

0 comments voice your opinion now!
while-else statement loop SQL results while-else statement loop SQL results


blog comments powered by Disqus

Similar Posts

Lukas Smith\'s Blog: My take on the PHP6 meeting results

Internet Super Hero Blog: PDO_MYSQLND: The new features of PDO_MYSQL in PHP 5.3

ThinkPHP Blog: SQL injections for dummies - and how to fix them

Scott Mattocks\' Blog: Pro PHP-GTK SQL File

Community News: Serendipity 1.1.3 and 1.2-beta2 released due to SQL exploit


Community Events





Don't see your event here?
Let us know!


symfony artisanfiles framework conference composer laravel tool interview version opinion release series list community language podcast security library introduction voicesoftheelephpant

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework