note 80525 added to control-structures.while

From: Date: Sun, 20 Jan 2008 17:52:25 +0000
Subject: note 80525 added to control-structures.while
Groups: php.notes 
Request: Send a blank email to php-notes+get-135261@lists.php.net to get a copy of this message
Using while without echo in while <?php while ( $row = mysql_fetch_array($result) ){ $id = $row['id']; $name = $row['name']; $rows .= "<tr><td>$name</td></tr>"; // the dot (.) is nessery before = } ?> <table> <?php echo $rows; ?> </table> This is good when you use templates system. ---- Server IP: 79.132.192.3 Probable Submitter: 217.219.59.138 ---- Manual Page -- http://www.php.net/manual/en/control-structures.while.php Edit -- https://master.php.net/note/edit/80525 Del: integrated -- https://master.php.net/note/delete/80525/integrated Del: useless -- https://master.php.net/note/delete/80525/useless Del: bad code -- https://master.php.net/note/delete/80525/bad+code Del: spam -- https://master.php.net/note/delete/80525/spam Del: non-english -- https://master.php.net/note/delete/80525/non-english Del: in docs -- https://master.php.net/note/delete/80525/in+docs Del: other reasons-- https://master.php.net/note/delete/80525 Reject -- https://master.php.net/note/reject/80525 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135261) next »