//session_start();
//include('txt/topbarout.txt');
//include('txt/leftbarout.txt');
//include('txt/centerbegin.txt');
include("txt/topbar.txt");
include("txt/leftbarlogin.txt");
//include("txt/centerlogin.txt");
include('txt/centerbegin.txt');
include("/home/finpres/options/klse/dbconnb.inc");
echo " Listed Company Directory ";
include("txt/cosearch2.txt");
$alpha = $HTTP_GET_VARS[sortby];
if(!$alpha){
$alpha = "A";
}
//echo "";
echo "";
echo "# | CODE | STOCK NAME | KLSENAME | VIEW | WEBSITE | ";
$result = mysqli_query($conn,"SELECT * FROM kstk WHERE fullname LIKE \"$alpha%\"");
$recno = 1;
while ($row = mysqli_fetch_array($result))
{
echo "$recno | $row[0] | $row[1] | $row[2] | Profile | ";
if (trim($row[3]) == "")
{
$website = "N/A";
}
else
{
$url = strtolower($row[3]);
$website = "YES";
}
echo "$website | ";
$recno++;
}
echo " ";
echo "
";
include('txt/centerend.txt');
include('txt/bottombarout.txt');
//include("txt/bottombarlogin.txt");
?>
| |