MySQL Forums
Forum List  »  Newbie

Thai Language
Posted by: Jasper Frumau
Date: June 24, 2005 02:17AM

Hi there,

I am new to PHP and to MySQL, I've an XP Professional run system, got phpmyadmin running on my webhost provider's server.
I made a small dictionary with a script provided at the google community. I want to make a Dutch-Thai, Thai-Dutch dictionay. But every time I upload a Dutch word with it's equivalent in Thai, the Thai gets deformed. How can I resolve this? Do I need to install Thai though my provider or with phpmyadmin in the database? Or do I need to change the script which sends the info to the database?

Here is the "upload"script:

<?php
echo("<a href=index.php>Home</a><br>");
if(isset($_GET['act']))
{
$do=$_GET['act'];
switch($do)
{
case 'form': show_form(); break;
case 'sm': submited(); break;
default: show_form();
}

}
else
show_form();
function show_form()
{
?>
<form name=frm method=POST action=admin.php?act=sm>
Nederlands: <input type=text name="eng"><br>
Thai: <input type=text name="vie"><br>
<input type=submit name=sm value="Submit">
</form>
<?
}
function submited()
{
require("dbconn.inc");
if(isset($_POST['sm']))
{
$eng=$_POST['eng'];
$vie=$_POST['vie'];
$sql="Insert into words(eng, vie) values('".$eng."','".$vie."')";
$res=mysql_query($sql,$link);
//header("Location: admin.php");
?>
<script language=Javascript>window.location="admin.php";</script>
<?

}
else
echo("Insert data !!");
mysql_close($link);
}
?>


Thanks for any info given.

Greetz,

Jasper
www.gateway2thailand.com

Options: ReplyQuote


Subject
Written By
Posted
Thai Language
June 24, 2005 02:17AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.