Hi, I'm new to PHP and have some questions.
I use Apache+MySql+PHP bundling. What I am trying to do is setting up a picture book application for my department. When an employee is selected from a list I want to display data about that person as well as his/her photograph from the MySql database.
The data part is easier(last name, firstname, etc). I also tried Florian's code to get the picture work. But I couldn't combine the text and the picture together. I can't get the webpage I want--a person's detail information: name, office, phone, and the picture show up in one page. I guess the reason is there should not be any output before the image's header being sent. But I couldn't fix it. I appreciate your help. If you want to have a look of my code, please let me know.
Thank you very much,
Stacey
I use Apache+MySql+PHP bundling. What I am trying to do is setting up a picture book application for my department. When an employee is selected from a list I want to display data about that person as well as his/her photograph from the MySql database.
The data part is easier(last name, firstname, etc). I also tried Florian's code to get the picture work. But I couldn't combine the text and the picture together. I can't get the webpage I want--a person's detail information: name, office, phone, and the picture show up in one page. I guess the reason is there should not be any output before the image's header being sent. But I couldn't fix it. I appreciate your help. If you want to have a look of my code, please let me know.
Thank you very much,
Stacey