Bit of a question about passing variables in PHP, I know this is simple but I figured it would a nice start. I've already gotten this to work but I am just curious about the correct way to do this operation. It's not hosted online otherwise I would have put in a link.
I've got a database that has these fields:
Name, Birthday, Gender, Bio, and Picture
Now the trick is I have a php driven page that hosts a gallery with the pictures in thumbnail form with the CSS set on the width of the page to 100%. The page is setup so that if it gets a value it shrinks this to about 300px and opens up a second column floated to the right. This contains the variable for the filename which can pull up the data via mysql getting the entire profile.
What I am curious about is to do this I passed the variable by link from a picture to the address by ".php?picture=oly0015.jpg". Would this be a correct way to do this in PHP or is there a better proper form for an operation that is simple like this? I know this works but I'd like to learn the proper way of formatting the code in PHP since I just started learning this a couple days ago.
I've got a database that has these fields:
Name, Birthday, Gender, Bio, and Picture
Now the trick is I have a php driven page that hosts a gallery with the pictures in thumbnail form with the CSS set on the width of the page to 100%. The page is setup so that if it gets a value it shrinks this to about 300px and opens up a second column floated to the right. This contains the variable for the filename which can pull up the data via mysql getting the entire profile.
What I am curious about is to do this I passed the variable by link from a picture to the address by ".php?picture=oly0015.jpg". Would this be a correct way to do this in PHP or is there a better proper form for an operation that is simple like this? I know this works but I'd like to learn the proper way of formatting the code in PHP since I just started learning this a couple days ago.
