As far as I can see you have some mistakes:
1. There's no <? and ?> to mark the PHP code, so maybe it's not parsing the PHP code in it or you are having errors trying to parse <td width=\"70\">
and </td> ... maybe is a typo in the way you wrote the code in your message.
- There's a semicolon on the wrong place and another missing things, the code should read:
If the name of your script is .html
echo "<TR>";
echo "<td width='70'>";
if ($myrow["Member"]) {
echo "<a href='client.php3?id=".$myrow['ID'] . "'>visit</a>";
}
else {
echo "<a href='non_client.php3?id=" . $myrow['ID'] . "'>visit</a>";
}
echo "</td></tr>";
A slimer way to write it would be without {}:
echo "<TR><TD WIDTH='70'>";
if ($myrow["Member"]) echo "<a href='client.php3?id=".$myrow['ID']."'>visit</a>";
else echo "<a href='non_client.php3?id=".$myrow['ID']."'>visit</a>";
echo "</td></tr>";
Hope it helps
Mr Aghhh wrote:
I have put this but still dosen't work
<td width=\"70\"><font size=\"1\" face=\"verdana, arial, helvetica\">
if ($myrow["Member"]) {echo "<a href=\"client.php3?id=" . $myrow["ID"] . "\">visit</a>"};
else {echo "<a href=\"non_client.php3?id=" . $myrow["ID"] . "\">visit</a>"}</font></b></td></tr>";}</font></td>
Where am I going wrong