Hi I have some problem.I have one photo which is in folder name images
so I try to write this code....... but it did not work .
$control .= "<img src=images/\"$row[MyPicture]\" vspace=10><br>";
my actually root is like this localhost/Pro/images
try this:
$control .= '<img src="images/' . $row['MyPicture'] . '" /><br/>';
I tried you code but it still not working I tried this it work
<img src="images/<?=$row["MyPicture"]?>" vspace="10"><br>
But I am trying to write in php syntex.......... still not work!!
Hmmm.... maybe...
// one: $control .= "<img src=\"images/$row['MyPicture']\" vspace=\"10\" /><br />"; // two: $control .= "<img src=\"images/{$row['MyPicture']}\" vspace=\"10\" /><br />";
Well,
should work. If it doesn't, what does it do instead?
If you are recieving a blank white page then the problem may be that you are using the "." (dot) before the equal sign. This means PHP is looking for the declaration of the variable but cannot find it and may be sending a NOTICE error about an undeclared variable that is causing you to see nothing.
$control .= "...";
Do you really need the dot?
Secondly it could be that you have your paths messed up?
Try:
$control .= "<img src=images/\"{$row['MyPicture']}\" vspace=10><br>";