trying to user left margin 50px on this link but it no working. 
echo "<a href=\"zoom.php?img={$row['image_id']}\"> <b id='bold2'>" . $image_short_name_db . "</b></a>";


Thats because a . in CSS refers to a class, not an id.

/** Id syntax */
#bold2 {margin-left:50px;}

/** Class syntax */
.bold2 {margin-left:50px;}
commented: thanks +2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.