cvs: php-bugs-web / all.php
| From: | Derick Rethans | Date: | Thu, 16 May 2002 19:34:02 +0000 |
| Subject: | cvs: php-bugs-web / all.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-10259@lists.php.net to get a copy of this message | ||
derick Thu May 16 15:34:02 2002 EDT
Added files:
/php-bugs-web all.php
Log:
- Get all bugs in a PHP var
# (I'm working on a bug weed out thing, this is needed for it)
Index: php-bugs-web/all.php
+++ php-bugs-web/all.php
<?php
mysql_pconnect("localhost","nobody","");
mysql_select_db("php3");
$qs = array (
array ('bugs', 'SELECT * FROM bugdb', 'id'),
array ('comments', 'SELECT * FROM bugdb_comments', 'bug')
);
$d = array();
foreach ($qs as $q) {
$r = mysql_query ($q[1]);
while ($rec = mysql_fetch_assoc($r)) {
$d[$rec[$q[2]][$q[0]][] = $rec;
}
}
var_export ($d);
?>