GD library create image with dynamic text on it
问题 I want to place text generated dynamically from a sql select, on an image created with GD library. I'm using this to create the image and place some text on it, but I want to place the variable $users with the sql select data into the image: $query = "SELECT id, name FROM users WHERE .... ORDER BY id DESC"; while ($line = mysql_fetch_assoc($query)) { $users .= "<img src='https://www.domain.com/" . $line['id'] . "/photo'/> " . $line['name'] . "<br />"; } function create_image(){ $im =