Posted by monomaniac21 on 08/04/06 10:25
//this loop doesnt work as intended, each row displays twice, once with a number as $key and again with key name as $key!? Any ideas why? $result = mysql_query("SELECT * FROM tbl WHERE id = '1' "); while($row = mysql_fetch_array($result)) { foreach ($row as $key => $value) { echo "<tr><td style='width:150px'>$key</td><td>$value</td></tr>"; }
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming