Thanks
Knight for your time. but your concatenation syntax is not right. (dot). must precede = sign
Peg is right
ahsanul did not understand my problem.
there are three images in my directory
add1.jpg
add2.jpg
add3.jpg
so i used the code
$add="add";
$add.=mt_rand(1,3);
$add.=".jpg";
if second line code generates a random value such as 2 then the final value of $add is
add2.jpg
now i echo the variable with img tag
echo "<img src=$add>";
my codes are very fine if i run the ads.php file directly
but problem is when i include this file from another file (not in same path)
i think all of you can understand me now
Best Regard:
Md. Zakir Hossain (Raju)
www.rubd.net
www.xenex.rubd.net
www.forum.rubd.net