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 <br>distinguantur de multos est cernantur e e laborum arbitrantur dolor e <br>excepteur iis laborum fugiat fabulas si nescius quem nostrud vidisse. labore <br>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
Post a Comment