Pics

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

23 replies · 1,332 views · started 19 years ago · 1 min read

4 participants
immortalempire Developer · 219 posts #1

hello does any 1 know how to make it so that a pic in a gallery of some 1 goes into they profile as an image like a logo ( not a clicky button that goes to pic ) i tried myself but dono how i only came up with ?>

![](http://$picture)

<?php but with no luck any help be good thanks
WhiteWarrior Principal · 1,419 posts #2

when they upload the pic to the gallery add the link into the database and in the profile select the profile picture link and use the img src code and the link from the database then its done.

immortalempire Developer · 219 posts #3

but in profile.php drugs if i put say the link of my pic then every 1 online will have my pic in profile wont they m8 not individual

WhiteWarrior Principal · 1,419 posts #6

but in profile.php drugs if i put say the link of my pic then every 1 online will have my pic in profile wont they m8 not individual

No, you do something lie BcFc Said..

$showpic = (SELECT piclink FROM profile WHERE username = "name2")

Do something like that then just show the pic

echo "<img src=\"$showpic"/>";

and then the picture should show.

you will need to code the gallery so the picture link goes in

WhiteWarrior Principal · 1,419 posts #7

and i wouldnt really bother with the SP script because php 4 ends at the end of the year

crazybrumi Super moderator Principal · 1,064 posts #8
 $sqlthing = mysql_query("SELECT * FROM members WHERE username='$name');
$name2=$name;

a thnk thats is it cant remember top of me head 

$picture=(mysql_result($sqlthing,"picture"));

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

immortalempire Developer · 219 posts #12

wer yu read that drugs, cos u can stil use it depends what serber u on

well if true looks like all sites i got r gone lol but cant i just use mysql 5 database cos atm got option for 4 or 5

immortalempire Developer · 219 posts #14
 $sqlthing = mysql_query("SELECT * FROM members WHERE username='$name');
$name2=$name;

a thnk thats is it cant remember top of me head 

$picture=(mysql_result($sqlthing,"picture"));

cheers brum i give it a go in bit

WhiteWarrior Principal · 1,419 posts #16

im helm not cpanel drugs

yeah iknow. i aint sure bout that but sql wont support it...

just change the coding to php 5

gett rid of the profile sqlthing crap lol and the select * Stuff lol External image (may be gone)

immortalempire Developer · 219 posts #17

plus is the company cpanel x hu r not doing it wont affect host hu have a licence for it

so brum u reckon my server fine m8

immortalempire Developer · 219 posts #19

yeh cos it got nowt to do with it plus theyd give ya a few months notice if they wer gna stop it and ud get an email to tel yu to chnage ya sites

only emails from them recently is usual biiling ones

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close