php - translating all values in a column in a database from one language to another -


I have a table named Fish in Swedish, something looks like this:

FishID | Swedish name | Resident

I have all the Swedish names for every fish but I also want an English name, I want to see it like this:

FishID | Swedish name | English name | Resident

Is there any way to translate the Swedish name into English and put it in the 'EnglishName' column?

< p> As long as you can use the API to insert the English version in your DB, if you have the list or the array ready to be inserted, it will be triple, but if you do not want to do something like this , Where you select all the rows and then make an original Form tables where you can put a list and English equivalent.
   exec ("SET CHARACTER SET UTF8");} Hold (PDOException $ e) {Echo 'Sorry' is a problem in the database connection: '. $ E & quot; getMessage ();} // Updates if posted Form ($ _ server ['REQUEST_METHOD'] == 'POST') {foreach ($ _ POST ['Ang Regi name '] as $ key = & gt; $ Value) {$ stmt = $ db- & gt; Prepare ('UPDATE fish_table SET EnglishName = English name where fish ID =:' FishID '); $ Stmt- & gt; Bind value (': English name', $ value); $ Stmt- & gt; Bind Value (': FISID', $ key); $ Stmt- & gt; Executed (); }} Select the // rows {$ stmt = $ db- & gt; Try ('SELECT * FROM fish_table WHERE English name = ""'); $ Stmt- & gt; Executed (); $ Fish = $ stmt-> Get All (PDO :: FETCH_ASSOC); } Hold (PDOException $ E) {echo 'error:' $ E & gt; getMessage (); }? & Gt; & Lt; form method = "post" verb = "" & gt; & Lt; Table & gt; & Lt ;? Php foreach (fish fish fish as fish):? & Gt; & Lt; TR & gt; & Lt; Td width = "50%" & gt; Input type = "text" name = "Swedish [  

or phpmyadmin; p

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -