|
Revision 12
(checked in by brieb, 3 years ago)
|
Interm update (nightly) now that SVN server issues resolved
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
require_once("include/session.php"); |
|---|
| 3 |
if(!isset($_GET["t"]) or !isset($_GET["r"]) or !isset($_GET["f"]) or !isset($_GET["mf"])) die("Invlaid Paramateers Set"); |
|---|
| 4 |
|
|---|
| 5 |
$querystatement="SELECT ".$_GET["f"].",".$_GET["mf"]." FROM ".$_GET["t"]." WHERE id=".$_GET["r"]; |
|---|
| 6 |
$queryresult=mysql_query($querystatement,$dblink); |
|---|
| 7 |
if(!$queryresult) die("bad query".$querystatement); |
|---|
| 8 |
if(mysql_num_rows($queryresult)){ |
|---|
| 9 |
$therecord=mysql_fetch_array($queryresult); |
|---|
| 10 |
header('Content-type: '.$therecord[$_GET["mf"]]); |
|---|
| 11 |
|
|---|
| 12 |
echo $therecord[$_GET["f"]]; |
|---|
| 13 |
} |
|---|
| 14 |
?> |
|---|