hello
can any 1 give me the idea if we use single web page for both admin and user then how to hide admin priviliges from user??

Well it's all dynamic using a server-side language such as PHP. First of all, you must check if the user is an admin. If you have a proper usersystem, checking if the current session's userID has admin enabled would work.

Then it's just a series of conditional statements and echo methods. ;)

hi forum
i was trying to fetch records from database against id but it gives error
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 1 on MySQL result index 3 in C:\xampp\htdocs\regadmin.php on line 52

<?php

$dbhandle = mysql_connect('localhost', 'root', '');

        if ($dbhandle == false)
        {
                 die  ("Unable to connect to MySQL Database<br>");
        }


if(!($db = mysql_select_db('registration'))){
echo "byeeeeeeeeeeeeeeeeeeeeeeeeeeee   Unable to Select MySQL Database";}
		
$id = $_POST[id1];
//$name = $_POST[txtname];
$qr = "select * from Table2 where ser = $id";
if(!($rs=mysql_query($qr))){

echo "cant insert";

}
while(mysql_fetch_row($rs)){
	$med = mysql_result($rs,1);
	$reg = mysql_result($rs,2);
	$enr = mysql_result($rs,3);
	$proga = mysql_result($rs,4);
	$nam = mysql_result($rs,5);
	$hf = mysql_result($rs,6);
	$dob= mysql_result($rs,7);
	$nat = mysql_result($rs,8);
	$gen = mysql_result($rs,9);
	$cat = mysql_result($rs,10);
	$tar= mysql_result($rs,11);
	$mar = mysql_result($rs,12);
	$rel = mysql_result($rs,13);
	$mino = mysql_result($rs,14);
	$status = mysql_result($rs,15);
	$ph = mysql_result($rs,16);
	$pht = mysql_result($rs,17);
	$pho = mysql_result($rs,18);
	$emp = mysql_result($rs,19);
	$scha = mysql_result($rs,20);
	$schd = mysql_result($rs,21);
	$sfi = mysql_result($rs,22);
	$qua = mysql_result($rs,23);
	$ms = mysql_result($rs,24);
	$pr = mysql_result($rs,25);
	$div = mysql_result($rs,26);
	$percent = mysql_result($rs,27);
	$bord = mysql_result($rs,28);
	$ad1 = mysql_result($rs,39);
	$ad2 = mysql_result($rs,30);
	$dist = mysql_result($rs,31);
	$city = mysql_result($rs,32);
	$phn = mysql_result($rs,33);
	$fax = mysql_result($rs,34);
	$mob = mysql_result($rs,35);
	$email = mysql_result($rs,36);
	$subject = mysql_result($rs,37);
	$ser = mysql_result($rs,38);
	}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.