View Single Post
  #2 (permalink)  
Old November 12th, 2007, 04:14 PM
paagle paagle is offline
Authorized User
 
Join Date: Dec 2006
Location: Burla, Orissa, India.
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to paagle
Default

Simple:
make an enum field 'display' wid 'y' and 'n'

in the form give an option field

then in php code
<?php
$connect = mysql_connect($host,$user,$pass);
$db = mysql_select_db($dbname,$connect);
$sql = "SELECT `display` FROM `table` WHERE `user` = '".$some_user_variable."'";
$query = mysql_query($sql,$a);
$fetch = mysql_fetch_rows($query);
if($fetch[0] = 'y')
{ //Code to display username}
else
{//some other code}
?>

---
Paagle
TEAM LEADER-Team Xuberance(http://www.xuberance.com)