[thelist] PHP calling a function twice

Andrew Maynes andrew at humanbehaviour.co.uk
Mon Feb 3 06:29:05 CST 2003


What would be the possible reasons why inserting this code into more than more
page would cause problems displaing the results?

$result=mysql("$DBName","SELECT * FROM Category ORDER BY Category");
fontFace("Arial","Select a category: ");

while ($row  =  mysql_fetch_row($result)) {
$Cat=$row[0];
$CatID=$row[1];
echo "<a href='$Relative/items.php?CA=$CatID&UID=$UID'>$Cat</a>";
        }

Andrew




More information about the thelist mailing list