Hi I'm new to php and trying to figure this problem out.
I have this snippet of code that shows a hyperlink 'view' if the account is active(i.e =1) in a table
<a href="<?php if (($x_ActiveAcc == 1)) { echo "Apartmentview.php?key=" . urlencode($sKey); } else { echo "javascript:alert('Invalid Record! Key is null');"; } ?>">View</a>
what I want to do is that if $x_ActiveAcc is =0 that no hyperlink is dispalyed and the space will be blank.
i.e all $x_ActiveAcc =1 displays a hyperlink ..'view'
and all $x_ActiveAcc =1 will be blank.
Also how do I replace the hyperlink word 'view' in the code with an image instead.
Thanks in advance.
Miriam Haden