Steve0 had it in his example, if you check for the existence of a 1 in the database using the sql statement.
However, if you want to show the link if it is a one, but show plain text or something else if it is not a 1, then you can do an if else statement:
Code:
if($sqlresult == 1)
{
echo "<html code to display link here>";
}
else
{
echo "<html code to display other info here>";
}
Of course, you need to make sure you have your sql connection setup and that you change it to the following on the select statement
Code:
$sql = "SELECT * FROM profile.tblcustomerdetails";
This pulls all the rows, and then you can step through them using the if and adjust the content accordingly...you still use the while statment, but you embedd the if statement within the while.