Index: /trunk/FACT++/www/smartfact/index.php
===================================================================
--- /trunk/FACT++/www/smartfact/index.php	(revision 14782)
+++ /trunk/FACT++/www/smartfact/index.php	(revision 14783)
@@ -108,4 +108,34 @@
 }
 
+if (isset($_GET['sourcelist']))
+{
+    $server = mysql_connect($dbhost, $dbuser, $dbpass);
+    if (!$server)
+        die(mysql_error());
+
+    if (!mysql_select_db($dbname, $server))
+        die(mysql_error());
+
+    $result = mysql_query("SELECT fSourceName AS name FROM source", $server);
+    if (!$result)
+        die(mysql_error());
+
+
+//    var res = db.query("SELECT fSourceName, fRightAscension, fDeclination ",
+//              "FROM source");
+
+   // store the record of the "example" table into $row
+
+    // Print out the contents of the entry
+
+    while ($row=mysql_fetch_array($result, MYSQL_NUM))
+        print("'".$row[0]."'\n");
+
+    mysql_close($server);
+
+    return;
+
+}
+
 if (isset($_GET['logout']))
 {
