// create list of praise
include("include/functions.php");
$link = ConnectDB();
// display praise from partners
$query = "SELECT company, praise FROM partner WHERE active=1 AND praise <> '' ORDER BY praise_rank DESC";
//printf("query is: %s ", $query);
$result = mysql_query($query)
or die("Invalid query: " . mysql_error());
// display the praise
while ($row = mysql_fetch_object($result)) {
?>
}
// display praise on projects
$query = "SELECT name, praise, praise_rank FROM project WHERE active=1 AND praise <> '' ORDER BY praise_rank DESC";
//printf("query is: %s ", $query);
$result = mysql_query($query)
or die("Invalid query: " . mysql_error());
// display the praise
while ($row = mysql_fetch_object($result)) {
?>