[RESOLVED] Display Image Using PHP Code
Hi,
I have a problem regarding display image by using PHP. I am writing the following code. But it is giving me the following error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/go/public_html/learnyoga/test.php on line 3
Please help me to cope up the situation.
PHP Code:
<?php
echo "<input border='0' src='<?php print("pics/".strtolower($Array_Asanas_Names[$i]).".jpg"); ?>' name='img' type='image'>";
?>
Thanks a lot.
Re: Display Image Using PHP Code
i am not sure what you did with your code, but here ya go:
PHP Code:
<?php
$pic = strtolower($Array_Asanas_Names[$i]);
echo "<input border='0' src='pics/{$pic}.jpg' name='img' type='image'>";
?>
Re: Display Image Using PHP Code
Hi dclamp,
Thnaks a lot for the help. This is working fine.