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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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