Jump to content

[SOLVED] image enlarge


NSW42

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.