I want to display my blob into my PHP but it wont display

yeah ID for user and employee

yes since the employee will upload an image to the user

Do you have session_start(); at the top of the page before output to browser?

yes I have this

The if !isset is pointless. session_start either starts a session if there isnt one or resumes an existing session.

Also do you see an <img tag when viewing page source?

I don’t have another aside from this

echo <‘img height=“250px” width=“250px” src="data:’.$row[‘imageType’].’;base64,’.base64_encode($row[‘imageData’]).’"/ '>

oh okay thank you.

What you are showing is code. If you right click on the page and select view page source that has been rendered to the webpage you may or may not see that <img tag based on IF your query returns a result.

oh okay

Good point. Post #16

If called twice it throws the following Notice:

Notice:  session_start(): 
Ignoring session_start() 
because a session is already active in
on line 4

Why would you call it twice? There is nothing anywhere that teaches you to do that.


When I first started php I used to call it a second time within included/required files and wonder why errors were being thrown.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.