Welcome Guest, Not a member yet? Register   Sign In
variables in if statement
#2

[eluser]PhilTem[/eluser]
I'm not sure if this solves your problem, but it will at least narrow down where to look for:
Code:
<?php if( $img->{image.$i} != 'nopic.jpg' ): ?> // if an image was uploaded by user

If you want to address all attributes image1, image2, image3, ... and so on and so forth for $img, it should be the solution. Otherwise you would have to clarify what exactly you want to get Wink


Messages In This Thread
variables in if statement - by El Forum - 06-12-2012, 09:05 AM
variables in if statement - by El Forum - 06-12-2012, 09:20 AM
variables in if statement - by El Forum - 06-12-2012, 10:12 AM
variables in if statement - by El Forum - 06-12-2012, 10:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB