jquery - Showing the data from mysql data to php page using select -


i using jquery line control plugin textbox, include both images links text(which can styled in either format) , proving me html code saves in mysql database.

for example :

if in line control textbox insert image , paragraph saves in mysql below result

    <img src="data:image/jpeg;base64,/9j/4aaqskzjrgabaqeayabgaad/4rdgrxhpzgaatu0akgaaaagabae7aaiaaaahaaaisodpaaqaaaabaaaiupydaaeaaaaoaaaqyuocaacaaagmaaaapgaaaaac6gaaaagaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...and lonbg garbage text this" alt="" height="151" width="139"/> <br><br>summis cernantur possumus, sunt arbitror ea comprehenderit, ne multos quibusdam &lt;br&gt;distinguantur de multos est cernantur e e laborum arbitrantur dolor e &lt;br&gt;excepteur iis laborum fugiat fabulas si nescius quem nostrud vidisse. labore &lt;br&gt;pariatur in praetermissum qui laborum quem nam <br> 

how can show in php page image ?

i know jquery solution jquery accepted.

you may need change according filetype.

header("content-type: image/jpeg"); $data = "/9j/4aadadjdjw8a........and on"; // somewhere echo '<img src="data:image/jpeg;base64,' . $data . '" />'; // display image 

edit: base64 image code damaged. ran code in jsfiddle image , works fine. maybe should check whether base64 data being truncated database.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -