include "admin/includes/db.inc.php"; // db.inc.php is databse connection file which will be included
session_start();
if(!isset($_SESSION['login']))
{
header('location:investor_login.php');
}
if(!isset($_REQUEST['action']))
{
$sql = mysql_query("select * from investor ORDER BY investor_id DESC ");
$result = mysql_num_rows($sql);
}
if(isset($_REQUEST['action']) && $_REQUEST['action']=='view')
{
$sql=mysql_query("select * from investor where investor_id='".$_REQUEST['investor_id']."' ORDER BY investor_id DESC ");
$result=mysql_num_rows($sql);
}
?>