Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/printtable.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/printtable.php
r7484 r7546 10 10 } 11 11 12 function PrintPage($html, $ db, $limits, $rms)12 function PrintPage($html, $host, $user, $pw, $db, $limits, $rms) 13 13 { 14 14 if (empty($_GET["fTable"])) … … 19 19 } 20 20 21 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");21 $db_id = mysql_connect($host, $user, $pw); 22 22 if ($db_id==FALSE) 23 23 { … … 67 67 header("Content-Disposition: attachment; filename=query-result.txt"); 68 68 69 PrintPage("0", $ db, $limits, $rms);69 PrintPage("0", $host, $user, $pw, $db, $limits, $rms); 70 70 } 71 71 else … … 80 80 printf("No query submitted yet.<BR>"); 81 81 else 82 PrintPage("1", $ db, $limits, $rms);82 PrintPage("1", $host, $user, $pw, $db, $limits, $rms); 83 83 84 84 echo (file_get_contents("index-footer.html"));
Note:
See TracChangeset
for help on using the changeset viewer.