Jump to content

need a query for translate cells array

- - - - -

  • Please log in to reply
5 replies to this topic

#1
lol33d

lol33d

    Programmer

  • Members
  • PipPipPipPip
  • 149 posts
Hi guys

i have a list array and this list needed translation.


all cells array for translation stored in database record

i need a query for translate array with good method

Database Records is: 251251

and array list is now count: 152
Tomorrow: 5001
After tomorrow: 100

and this list change and uptodate

help me please

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
It's going to be hard to help with this little information.

What is your database structure?
What is some sample data?
What should the transformation look like?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
lol33d

lol33d

    Programmer

  • Members
  • PipPipPipPip
  • 149 posts
database structure:
ID 	bigint(20) 	No  	  	  	 

STATUS 	enum('Enabled', 'Disabled') 	No  	Enabled  	  	 

LEVEL 	enum('Name', 'Family', 'Class') 	No  	Name  	  	 

ENNAME 	varchar(255) 	No  	  	  	 

CHNAME 	varchar(255) 	No  	  	  	 

DATE 	datetime 	No

LEVEL for keys array
ENNAME is orginal name and CHNAME is translate name
sample data:
$data = array(

				"Name"	=>	"Mikel", 

				"Name"	=>	"Alish", 

				"Name"	=>	"Mark", 

				"Name"	=>	"Duhe", 

				

				"Family"	=>	"Lois", 

				

				"Class"	=>	"Hogc", 

				"Class"	=>	"Hogc2", 

				"Class"	=>	"Hogc3", 

				

				"Family"	=>	"Nassi", 

				"Family"	=>	"Small");

thank you

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
I'm not sure I clearly understand what you want to happen.

Currently, it seems like you could do a query for each item in your array to get the translation, but I'm guessing you want something a little different.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
lol33d

lol33d

    Programmer

  • Members
  • PipPipPipPip
  • 149 posts
i need translate array

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Can you give an example of input and output? I don't know what that means.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users