Image not displaying

images php coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Tue Feb 14, 2012 12:08 am

Image not displaying

Postby honeya » Tue Feb 14, 2012 12:21 am

I have two tables one images second one is users. Images table fields are image_id, image_name and users table has fields id, username,email,image_name. image table under image_name i have saved different images paths assigning ids automatically. User will have to select his profile picture from that image tables whose name (id) will be saved under users table in image_name field. i dont know how to display image with user profile. Please help me out

User avatar
New php-forum User
New php-forum User
Posts: 144
Joined: Fri Dec 30, 2011 4:27 am
Location: Liverpool

Re: Image not displaying

Postby L33R » Wed Feb 15, 2012 3:20 pm

How far have you gotten with this?

You have the location of the image in your database? and you are trying to display the image?

$user_image = the location of the image.

<img src="<?php echo $user_image; ?>" alt="user image" />

If this isnt what youre wanting then please post your code and explain what you want to do.

Return to “PHP coding => Images”

Who is online

Users browsing this forum: No registered users and 2 guests