0

Is there any way to create an image out of MySQL result set in PHP using GD Graphics Library?

I am ucrrently displaying the resultset in a table format in my PHP page.

2 Answers 2

1

You could try and convert your HTML generated result data as a pdf using TCPDF (it does have some basic HTML support). AFAIK there's no library that renders HTML and converts to an image at the same time.

If you HAVE to have an image instead, consider using GDs built in methods to render your data ... though this might be a PITA.

Good luck.

Sign up to request clarification or add additional context in comments.

3 Comments

Agreed, GC Library would be nice to render data in (if done correctly).
Actually, weak GD with it's few formats supported is worst choice :) take a look to imagemagick
GD may be worse but it's available with even the crappiest hosts.
0

No, there is no way while displaying current resultset. Basic HTML knowledge is needed to use PHP.

Storing images in the disk directory instead of database is much easier to use and more reliable.

2 Comments

I think you didn't understand the OP's question. He wants to generate an image out of a database result set.
Ah, may be. Well, not GD nor any other graphic library would help Because it's an HTML render engine what does he need in this case.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.