Jump to content

Recommended Posts

Heya, wonder if someone could help me out with a piece of coding, so when users views a profile they can click on the picture in the profile and it enlarges to its original viewing size, coding is below in a set size now. many thanks...

 

 

 

if ($row[pro_pic] != $null) {

print("

<img src=$row[pro_pic] width=200 height=200>

Link to comment
https://forums.phpfreaks.com/topic/85942-solved-image-enlarge/
Share on other sites

heya, ive kinda managed 99% do this, it opens a new page with the original pic size, but I have 1 little hiccup, the actual profile pic size wont stay at what its set at 200x200 it shows the origianl size as well, coding is below, many thanks if someone could help out....

 

 

<a href=$row[pro_pic] width=200 height=200><img src=$row[pro_pic]></a>

Link to comment
https://forums.phpfreaks.com/topic/85942-solved-image-enlarge/#findComment-439385
Share on other sites

heya, ive kinda managed 99% do this, it opens a new page with the original pic size, but I have 1 little hiccup, the actual profile pic size wont stay at what its set at 200x200 it shows the origianl size as well, coding is below, many thanks if someone could help out....

 

 

<a href=$row[pro_pic] width=200 height=200><img src=$row[pro_pic]></a>

 

oops i had it backwards

 

<a href=$row[pro_pic]><img src=$row[pro_pic] width=200 height=200></a>

Link to comment
https://forums.phpfreaks.com/topic/85942-solved-image-enlarge/#findComment-439391
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.