|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
sign up pic
sorry i changed this it was a stupid question... my real question is...how do i select something from a list then cross reference it so it appears besides the users name...almost like an avatar but it is done upon sigining up.
Last edited by Bruski : September 13th, 2003 at 12:50 AM. |
|
#2
|
||||
|
||||
|
Are you wanting to join information between two tables of information in a database? what exactly are you trying to do? we need a little bit more information please
![]() Where do you get your information from that you are trying to cross reference, or inner join? Database? Text file? Spreadsheet? If database, what kind? MS Access? SQL? Informix? |
|
#3
|
|||
|
|||
|
user signs up chooses country where he/she is from ...then a picture of that country appears besides the persons name whenever he or she posts or comments. using mysql and php...or anything that can do this...
|
|
#4
|
||||
|
||||
|
This is a really rough example for a pseudocode for you to use
Ok, lets assume that I signed up, and being from America, choose such. 1. I sign up, and choose America as my country 2. The script logs me in, and it pulls from the database my username, my name, and my title.. It also pulls the country information.. 3. Have a sub script (if statement, case statement, array, etc) to determine the location of the image based on the country, such as, if you are storing the picture of the country in the file structure, you could have PHP Code:
something like that |
|
#5
|
|||
|
|||
|
oh thanks man...only other problem is how would i make the selection...i know its something like <option = etc> but how would you take that data inputed and stor e it
|
|
#6
|
||||
|
||||
|
On the initial user form when the customer is filling out the information, have it as a drop down box, and just pass that information to the script.. just like you would an input box
|
|
#7
|
|||
|
|||
|
thx ill show u when im done =]
|
|
#8
|
|||
|
|||
|
how would you go about making it so its always used for his name...with get[id] ? and how would i go about doing that?
|
|
#9
|
||||
|
||||
|
You wouldn't want to hard code something like that.. what if later they wanted their name to read differently?
|
|
#10
|
|||
|
|||
|
change the name of the country by giving a user change pge
|
|
#11
|
||||
|
||||
|
OK... I'm not entirely understanding what exactly you are wanting to do... please give me a little bit more detail please
![]() |
|
#12
|
|||
|
|||
|
lets just say they login and always have that besides their name where ever they are posting =]
|
|
#13
|
|||
|
|||
|
the picture just wont display
=[ |
|
#14
|
|||
|
|||
|
solution for anyone who ever wants it
PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > script problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|