[Cialug] Conditional logic for checking a file in PHP -- continued

Andrew Lietzow cialug@cialug.org
Fri, 5 Nov 2004 12:29:47 -0600 (CST)


This is a multi-part message in MIME format.
If you can read this line, your email software does not support this format.
--MyFaMiLyMiMeBoUnDaRy02292000
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Here is some php code that does NOT work.  
I get this error.  
Parse error: parse error, unexpected T_STRING, expecting '(' 

<? 
if fopen("http://hostahaven.com/photos/"+$row["HH_ID"]+'.jpg'","r")
	then <td width="200"><a href="http://hostahaven.com/photos/<?= $row["HH_ID"] ?>.jpg"</a>
		Click for photo</td>
	else <td width="200">No Photo Available</td>
?>

If you want to refer me to a book that has good examples of this, or preferrably an online resource, that would be great.  

TIA for any help, 
Andrew




_____________________________________________________________________
Get your own family web site at www.MyFamily.com!




--MyFaMiLyMiMeBoUnDaRy02292000--