include("../connection.php"); class galleryrecords extends connection { var $selDate,$selid,$selname,$selimg,$selemail,$seltitle,$selmessage,$selpost,$selmsg; function __destruct() { } function showAlumini($idno) { $qry="select * from gallery where id='$idno'"; $fire=mysql_query($qry,$this->conn) or die("error in query....."); while($rec=mysql_fetch_array($fire)) { $this->selid=$rec["id"]; $this->selname=$rec["name"]; $this->selimg=$rec["image_url"]; } } function showfacility($idno) { $qry="select * from facility where id='$idno'"; $fire=mysql_query($qry,$this->conn) or die("error in query....."); while($rec=mysql_fetch_array($fire)) { $this->selid=$rec["id"]; $this->seltitle=$rec["title"]; $this->selimg=$rec["image"]; } } function showstar($idno) { $qry="select * from ourstar where id='$idno'"; $fire=mysql_query($qry,$this->conn) or die("error in query....."); while($rec=mysql_fetch_array($fire)) { $this->selid=$rec["id"]; $this->selname=$rec["name"]; $this->selpost=$rec["post"]; $this->selmsg=$rec["message"]; $this->selimg=$rec["image_url"]; } } function shownews($idno) { $qry="select * from news where id='$idno'"; $fire=mysql_query($qry,$this->conn) or die("error in query....."); while($rec=mysql_fetch_array($fire)) { $this->selid=$rec["id"]; $this->selname=$rec["name"]; $this->selemail=$rec["email"]; $this->seltitle=$rec["title"]; $this->selmessage=$rec["message"]; $this->selStatus=$rec["pstatus"]; } } function showfeedback($idno) { $qry="select * from feedback where id='$idno'"; $fire=mysql_query($qry,$this->conn) or die("error in query....."); while($rec=mysql_fetch_array($fire)) { $this->selid=$rec["id"]; $this->selname=$rec["name"]; $this->selemail=$rec["email"]; $this->seltitle=$rec["title"]; $this->selmessage=$rec["message"]; } } } $tableObj1=new galleryrecords(); $tableObj1->setconnection(); $tableObj1->selectdb(); if($_REQUEST["op"]=="galleryup") { $tableObj1->showAlumini($_REQUEST["selAlumni"]); ?>