PHP image creation from hex values in database

前端 未结 2 442
误落风尘
误落风尘 2021-01-28 13:17

I\'ve got the code below to pull hex values from a database and create an image of that colour. There\'s over a thousand values, so it\'s looping to create an image for them all

2条回答
  •  清酒与你
    2021-01-28 13:44

    $x = 0; is executed in each iteration of the while loop. You need to move the initialization in front the loop.

提交回复
热议问题