Why is this php code not echoing anything?
for ( $x = 1; $x <7; $x++) {
if (!empty(${'Image'.x})) {
echo "<label>Image".x.":</label><img src=../images/ASP_Images/".${'Image'.x}. " /><br />";
}
}
Thanks
Got it, man im stupid!
for ( $x = 1; $x <7; $x++) {
if (!empty(${'Image'.$x})) {
echo "<label>Image".$x.":</label><img src=../images/ASP_Images/".${'Image'.$x}. " /><br />";
}
}