[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2295 - GNUnet-docs/WWW/test/tmp
From: |
grothoff |
Subject: |
[GNUnet-SVN] r2295 - GNUnet-docs/WWW/test/tmp |
Date: |
Mon, 28 Nov 2005 14:16:57 -0800 (PST) |
Author: grothoff
Date: 2005-11-28 14:16:55 -0800 (Mon, 28 Nov 2005)
New Revision: 2295
Modified:
GNUnet-docs/WWW/test/tmp/jobs.php
Log:
up
Modified: GNUnet-docs/WWW/test/tmp/jobs.php
===================================================================
--- GNUnet-docs/WWW/test/tmp/jobs.php 2005-11-27 23:21:12 UTC (rev 2294)
+++ GNUnet-docs/WWW/test/tmp/jobs.php 2005-11-28 22:16:55 UTC (rev 2295)
@@ -11,6 +11,7 @@
echo "<html><body>\n";
$query = "SELECT * FROM universities";
$result = mysql_query($query, $connection);
+$skipped = 0;
$num = 0;
if ($result)
$num = mysql_num_rows($result);
@@ -18,12 +19,23 @@
echo "<table border=5>\n";
for ($ii=0;$ii<$num;$ii++) {
$row = mysql_fetch_array($result);
- printf("<tr><td><a href=\"%s\">%s</a><td><td><a href=\"%s\">*
%s</a></td></tr>\n",
+ $id = $row["id"];
+ $query2 = "SELECT * FROM applications WHERE id=$id";
+ $result2 = mysql_query($query2, $connection);
+ $num2 = 0;
+ if ($result2)
+ $num2 = mysql_num_rows($result2);
+ if ($num2 == 0) {
+ printf("<tr><td><a href=\"%s\">%s</a><td><td><a href=\"%s\">*
%s</a></td></tr>\n",
$row["url"],
$row["name"],
$row["appUrl"],
$row["appDeadline"]);
+ } else {
+ $skipped++;
+ }
}
echo "</table>\n";
+echo "Skipped $skipped entries.<br>";
echo "</body></html>\n"
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2295 - GNUnet-docs/WWW/test/tmp,
grothoff <=