-
February 19th, 2003, 03:20 AM
#1
Senior Member
php question
Is it possible to assign a variable to a file (in this case a pic) in php???
-----------------------------------------------------------------
<html>
<body>
<?php $num=4;
$i=10;
$res=$i*$num;
$foto=pic1.gif;
printf("resultado igual a $res
");
php?>
<center>
[img]<?$foto?>[/img]
</body>
</html>
-------------------------------------------------------------------------
The numerical variables are correctly displayed, but the picture is not shown at all, the picture is stored in the same dir as my .php file. I don't know what else to add so that the pic can be displayed.
thanks
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
|
|