bir değişken olarak görüntü konumunu ayrıştırmak

0 Cevap php

Hi I am writing a php code and and am supposed to display a large number of images on the webpage and hence I am using mysql data base to store the coordinates and taking them using SELECT and then trying to position them.

Ama değişken olarak Koordinasyonu ayrıştırmak mümkün değilim.

echo "img style=\"position :absolute; top:123px;left:123px\" border=\"0\" src=\"throbber.gif\" alt=\"Image\"/>";

bu yerde ben yapmak istiyorum:

echo "img style=\"position :absolute; top:$variable1 px;left:variable2 px\" border=\"0\" src=\"throbber.gif\" alt=\"Image\"/>";

Bu bana yardımcı olun ..

0 Cevap