Student Theses and Dissertation Abstract Archive |
$username="econbot";
$password="C5G2Cpg9cUCxoDnT";
$database="oldsite";
$domain = "econbot.org"; // used to block external access to php
$referer = $_SERVER['HTTP_REFERER'];
if (!strpos($referer,$domain)) {die('I\'m sorry, direct access to the php file you requested is not allowed. Please access through the SEB web interface.');}
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM Student_Abstract_Index";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();echo "";
$i=0;
while ($i < $num) {
$id=mysql_result($result,$i,"id");
$last_name=mysql_result($result,$i,"last_name");
$first_name=mysql_result($result,$i,"first_name");
$year=mysql_result($result,$i,"year");
$title=mysql_result($result,$i,"title");
$degree=mysql_result($result,$i,"degree");
$department=mysql_result($result,$i,"department");
$institution=mysql_result($result,$i,"institution");
$city=mysql_result($result,$i,"city");
$state=mysql_result($result,$i,"state");
$country=mysql_result($result,$i,"country");
$email=mysql_result($result,$i,"email");
$abstract=mysql_result($result,$i,"abstract");
$keywords=mysql_result($result,$i,"keywords");
$region=mysql_result($result,$i,"region");
$study_country=mysql_result($result,$i,"study_country");
$advisor=mysql_result($result,$i,"advisor");
$Contact=mysql_result($result,$i,"Contact");
echo "$id. $last_name, $first_name. $year. $title. $department. $institution. $city, $state $country. $degree, Advisor: $advisor "; $i++; } ?> |