Well I have script which wiews fields in my database...
<?php
if($loged=='yes') { ?>
<HTML><?php
$db = mysql_connect("localhost", "xxxxx", "xxxxxx");
mysql_select_db("boyem_com",$db);
$result = mysql_query("SELECT * FROM amx_regusers",$db);
echo "<TABLE BORDER=2>";
echo"<TR><TD><B>Nick</B><TD><B>Pass</B><TD><B>Flags</B><TD><B>Options</B></TR>";
while ($myrow = mysql_fetch_array($result))
{
echo "<TR><TD>".$myrow["nick"]."<TD>".$myrow["pass"]."<TD>".$myrow["flags"];
echo "<TD><a href=\"delete.php?nick=".$myrow[nick]."\">Delete</a>";
echo "<TD><a href=\"edit.php?nick=".$myrow[nick]."\">Edit</a>";
}
echo "</TABLE>";
?></HTML>
<? } else { ?>
<b>Please login <a href="index.php">here.</a></b>
<? } ?>
ok this scripts works perfectly....when i visit view2.php i see all the columns that are generated from the database...
in this page i will give access to users to view the table in the database...but some information should be showend to the users...with given access....so I installed a authentication script where users who log in will be able to view the page that i posted above...
lets say i have 2 users
[noc]abdul
[kate]momo
well when they login they can view all the information in the page i posted above...
the thing i want is that when [noc]abdul log ins i want him to see in amx_regusers table in the database the rows which has [noc] included in the nick (field in the amx_regusers table)...
is it possible to do it...if you have questions please ask i really need it...