Re: Hello, can anyone help me with a bit of code please?
Posted: Tue Aug 18, 2009 9:43 am
Jackpf, you did tell me almost right from the start, and i do appreciate your help. I just didn't understand how to do that, so i was hoping for an exact 'phrase' or 'code'.
I'm still having difficulty with it and juma has sent me on the right track i'm just lost as to how to write this.
If any of you wouldn't mind giving me a bit more help it would really nice of you, and try to be patient of my ignorance. By the way Juma, i really do need to start learning php, i undertook this 'project' just to see if i could get my head around it all. I have a learning problem as in i cannot learn from books, but through practical demonstration or trial and error, but sometimes i need someone who knows what they're talking about to point me in the right direction.
Here's where i am at now:
First, this is a redundant os php profiles site and i've added a fun forum. This is a simple 3 column css with a comment script in the middle. I have added a frame to the left column and that's where i want the avatar to show.
So it's something like: <TR><TD VALIGN=TOP>
<TABLE BORDER=1 WIDTH=160 HEIGHT=160>
<TR>
<TD WIDTH=160 HEIGHT=160><img src="/home/folder/folder2/users/images/' . $default_pic . '"/> </TD>
</TR>
</TABLE>
<DIV class="ptext">Categories</DIV>
now this isn't working. So here's the database details....
The table name is images.
Then in php myadmin it shows me along the top:
image id
directory
image (name)
url
display name
default_pic
The path up to here is correct /home/folder/folder2/users/
In the user folder are individual folders for each user then default_pic
So i think it's a matter of adding 'something' after users/ in the url which tells it to select the apropriate user folder, and then the default pic.
Can anyone tell me the correct way to write this as well because i'm not sure that i've added it correctly to the frame.
Thanks for your answers, i do appreciate everyone of them, it's just that sometimes one person can put it in a way that i understand better than another.
Thanks also for your patience and Juma, i think you might be hearing from me real soon!!
I'm still having difficulty with it and juma has sent me on the right track i'm just lost as to how to write this.
If any of you wouldn't mind giving me a bit more help it would really nice of you, and try to be patient of my ignorance. By the way Juma, i really do need to start learning php, i undertook this 'project' just to see if i could get my head around it all. I have a learning problem as in i cannot learn from books, but through practical demonstration or trial and error, but sometimes i need someone who knows what they're talking about to point me in the right direction.
Here's where i am at now:
First, this is a redundant os php profiles site and i've added a fun forum. This is a simple 3 column css with a comment script in the middle. I have added a frame to the left column and that's where i want the avatar to show.
So it's something like: <TR><TD VALIGN=TOP>
<TABLE BORDER=1 WIDTH=160 HEIGHT=160>
<TR>
<TD WIDTH=160 HEIGHT=160><img src="/home/folder/folder2/users/images/' . $default_pic . '"/> </TD>
</TR>
</TABLE>
<DIV class="ptext">Categories</DIV>
now this isn't working. So here's the database details....
The table name is images.
Then in php myadmin it shows me along the top:
image id
directory
image (name)
url
display name
default_pic
The path up to here is correct /home/folder/folder2/users/
In the user folder are individual folders for each user then default_pic
So i think it's a matter of adding 'something' after users/ in the url which tells it to select the apropriate user folder, and then the default pic.
Can anyone tell me the correct way to write this as well because i'm not sure that i've added it correctly to the frame.
Thanks for your answers, i do appreciate everyone of them, it's just that sometimes one person can put it in a way that i understand better than another.
Thanks also for your patience and Juma, i think you might be hearing from me real soon!!