Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Image not displaying

images php coding issues or problems here.

Moderators: macek, egami, gesf

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
honeya
New php-forum User
New php-forum User
 
Posts: 1
Joined: Tue Feb 14, 2012 12:08 am

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?


php:
$user_image = the location of the image.


html:
<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.
User avatar
L33R
New php-forum User
New php-forum User
 
Posts: 132
Joined: Fri Dec 30, 2011 4:27 am
Location: Liverpool


Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.