[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2297 - GNUnet-docs/WWW/test/tmp
From: |
grothoff |
Subject: |
[GNUnet-SVN] r2297 - GNUnet-docs/WWW/test/tmp |
Date: |
Mon, 28 Nov 2005 21:05:58 -0800 (PST) |
Author: grothoff
Date: 2005-11-28 21:05:56 -0800 (Mon, 28 Nov 2005)
New Revision: 2297
Added:
GNUnet-docs/WWW/test/tmp/full.php
Log:
sync
Added: GNUnet-docs/WWW/test/tmp/full.php
===================================================================
--- GNUnet-docs/WWW/test/tmp/full.php 2005-11-28 22:17:20 UTC (rev 2296)
+++ GNUnet-docs/WWW/test/tmp/full.php 2005-11-29 05:05:56 UTC (rev 2297)
@@ -0,0 +1,32 @@
+<?php
+header("Content-type: text/html; charset=utf-8");
+$connection = mysql_connect("localhost", "jobs", "jobs");
+if (!$connection)
+ die ("Failure connecting to localhost " . mysql_error());
+if ($connection) {
+ $db_selected = mysql_select_db("jobs", $connection);
+ if (!$db_selected)
+ die ('Error selecting db : ' . mysql_error());
+}
+echo "<html><body>\n";
+$query = "SELECT * FROM universities";
+$result = mysql_query($query, $connection);
+$skipped = 0;
+$num = 0;
+if ($result)
+ $num = mysql_num_rows($result);
+echo "Database has $num entries.<br>\n";
+echo "<table border=5>\n";
+for ($ii=0;$ii<$num;$ii++) {
+ $row = mysql_fetch_array($result);
+ printf("<tr><td>%s</td><td><a href=\"%s\">%s</a><td><td><a href=\"%s\">*
%s</a></td></tr>\n",
+ $id,
+ $row["url"],
+ $row["name"],
+ $row["appUrl"],
+ $row["appDeadline"]);
+}
+echo "</table>\n";
+echo "Skipped $skipped entries.<br>";
+echo "</body></html>\n"
+?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2297 - GNUnet-docs/WWW/test/tmp,
grothoff <=