gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2288 - in GNUnet-docs/WWW/test: . tmp


From: grothoff
Subject: [GNUnet-SVN] r2288 - in GNUnet-docs/WWW/test: . tmp
Date: Sun, 27 Nov 2005 13:03:44 -0800 (PST)

Author: grothoff
Date: 2005-11-27 13:03:42 -0800 (Sun, 27 Nov 2005)
New Revision: 2288

Added:
   GNUnet-docs/WWW/test/tmp/
   GNUnet-docs/WWW/test/tmp/jobs.php
Log:
hck

Added: GNUnet-docs/WWW/test/tmp/jobs.php
===================================================================
--- GNUnet-docs/WWW/test/tmp/jobs.php   2005-11-27 19:44:34 UTC (rev 2287)
+++ GNUnet-docs/WWW/test/tmp/jobs.php   2005-11-27 21:03:42 UTC (rev 2288)
@@ -0,0 +1,25 @@
+<?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><table>\n"
+$query = "SELECT * FROM jobs";
+$result = mysql_query($query, $connection);
+$num = 0;
+if ($result)
+  $num = mysql_num_rows($result);
+for ($ii=0;$ii<$num;$ii++) {
+  $row = mysql_fetch_array($result); 
+  printf("<tr><a href=\"%s\">%s</a><td><td>%s</td></tr>\n", 
+         $row["url"], 
+         $row["name"],
+         $row["appDeadline"]);
+}
+echo "</table></body></html>\n"
+?>
\ No newline at end of file





reply via email to

[Prev in Thread] Current Thread [Next in Thread]