|
-
Nov 4th, 2007, 11:54 PM
#1
Thread Starter
Hyperactive Member
[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.
-
Nov 5th, 2007, 12:11 AM
#2
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'>";
?>
My usual boring signature: Something
-
Nov 5th, 2007, 01:20 AM
#3
Thread Starter
Hyperactive Member
Re: Display Image Using PHP Code
Hi dclamp,
Thnaks a lot for the help. This is working fine.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|