How can I export the data which is in excel format? Can images or Videos be embedded in PHP?

Recommended Answers

Excel will export to either a CSV (comma separated values) or tab delimited file. If you are trying to get data read by excel your best bet is to save it as tab delimited and with a .TXT extension. Excel will automatically import the file when opened with Excel.

Jump to Post

All 2 Replies

Excel will export to either a CSV (comma separated values) or tab delimited file. If you are trying to get data read by excel your best bet is to save it as tab delimited and with a .TXT extension. Excel will automatically import the file when opened with Excel.

And yes images can be embedded in php but I am not sure about videos.

How can I export the data which is in excel format?

As Rich said use CSV. Excel can well import it

Can images or Videos be embedded in PHP?

Yes why not! Aren't they just html done with echo?

$img= "<img alt='blah blah' src='image.png' />";
echo $img;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.