IF ($nextphotono > $rowcount) { $next_link= ""; $next_thumb= ""; } ELSE { $next = mysql_query("SELECT * FROM photoalbum WHERE id=$nextphotono") or die(mysql_error()); extract(mysql_fetch_assoc($next)); $next_thumb = "$thumbnail"; $next_link = "$nextphotono"; }
If you were wondering what i was testing - I found that the forums strip HTML markup from your posts and PHP uses the HTTP_X_FORWARDED_FOR var rather than the usual HTTP_REMOTE_ADDR.... Hello