html - Php syntax error, little help -


i have string:

$imagename ="$ad_id_stripped"."_1".".jpg"; $display_table.="<a href='../ad.php?ad_id=$row[ad_id]' target='_parent'> <img style='border:none;' src='../ad_images/$category/thumbs/$imagename?time()' class='shadow'></a>";  echo $display_table; 

as maybe can see trying add time() function in there... however, there no time() added this! have tried various quotes etc without luck...

any ideas?

thanks

$imagename ="$ad_id_stripped"."_1".".jpg"; $display_table.="<a href='../ad.php?ad_id=$row[ad_id]' target='_parent'> <img style='border:none;' src='../ad_images/$category/thumbs/$imagename?" . time() . "' class='shadow'></a>";  echo $display_table; 

you want time() function out of string , concatenate


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -