嗨 我正在寫一個php代碼,並且應該在網頁上顯示大量圖像,因此我使用mysql數據庫來存儲座標並使用SELECT將它們取出然後試圖定位它們。解析圖像位置作爲變量
但我無法將座標解析爲變量。
echo "img style=\"position :absolute; top:123px;left:123px\" border=\"0\" src=\"throbber.gif\" alt=\"Image\"/>";
在這個地方
我想做的事:
echo "img style=\"position :absolute; top:$variable1 px;left:variable2 px\" border=\"0\" src=\"throbber.gif\" alt=\"Image\"/>";
請幫我這個..