User Profile

Collapse

Profile Sidebar

Collapse
sunilwije
sunilwije
Last Activity: May 24 '13, 04:58 PM
Joined: Mar 16 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I know how to create a table but is there a better way than repeating the same user location (Country,State, City) which are common for some users in the User table.
    See more | Go to post

    Leave a comment:


  • sunilwije
    started a topic Problem of indexing Country, State , City columns

    Problem of indexing Country, State , City columns

    Problem of indexing Country, State , City table.
    Instead of entering repeated user location for several users who share the same location I am planning to normalize by giving locationID from Locations table to each user in the User table so that I don’t have to enter Country, State, City repeatedly in the User table so I save disk space. (USA, CT, Woodhaven )
    After several users say 12th users may enter USA,NY, Albany...
    See more | Go to post

  • Multilingual database - using a variable instead of a column name in Mysql

    I have following code snippet to implement a multilingual website.
    Idea is to, depending on user's language i need to translate word "Man" to "Hombre"

    My Question: Will it be valid to use $user_language instead of hard coded column name "Spanish" here.

    code:
    Code:
    //$user_language is passed from his profile after log in to the site
    
    SELECT $user_language 					
    FROM
    ...
    See more | Go to post
    Last edited by Rabbit; Apr 1 '13, 06:09 PM. Reason: Please use code tags when posting code.
No activity results to display
Show More
Working...