999000333
Programmer
- Nov 20, 2006
- 39
Hello
I have a php file and in it I just added this piece of code to print an image if DocNum(document's number) is set else print another image:
<td>
<?php if (!( $row_Elenco['DocNum'])){
<IMG SRC="../myred.jpg" ALT="Ricerca"> } else {<IMG SRC="../greenp.jpg" ALT="Ricerca"> } ?>
</td>
Now when I run it I get this error "Parse error: parse error, unexpected '<' in Box/myFile"
Can anyone tell me what is wrong?
Thank you
Paola
I have a php file and in it I just added this piece of code to print an image if DocNum(document's number) is set else print another image:
<td>
<?php if (!( $row_Elenco['DocNum'])){
<IMG SRC="../myred.jpg" ALT="Ricerca"> } else {<IMG SRC="../greenp.jpg" ALT="Ricerca"> } ?>
</td>
Now when I run it I get this error "Parse error: parse error, unexpected '<' in Box/myFile"
Can anyone tell me what is wrong?
Thank you
Paola