حسناً 
اسم قاعدة البيانات هو dictionary
الجدول :
كود PHP:
CREATE TABLE `dictionary` (
`arabic` text NOT NULL,
`english` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
ملف الإضافة :
كود PHP:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>add word</title>
<h3>add word:</h3>
<form method="post" action="">
<p>word in arabic: <input type="text" name="word_arabic" size="20" /></p>
<p>word in english: <input type="text" name="word_english" size="20" /></p>
<p><input type="reset" value="reset" /> <input type="submit" value="add" /></p>
</form>
<?php
if (isset($_POST['word_arabic']) and isset($_POST['word_english']))
{
if (empty($_POST['word_arabic']) or empty($_POST['word_english']))
{
echo "<strong>error:</strong> some information is empty..";
}
else
{
$connect = mysql_connect("localhost","root","");
mysql_select_db("dictionary");
$word_arabic = htmlspecialchars($_POST['word_arabic']);
$word_english = htmlspecialchars($_POST['word_english']);
if (mysql_query("insert into dictionary ( arabic, english ) values ( '$word_arabic', '$word_english' )"))
{
echo"<strong>case:</strong> the word has bin add..";
}
else
{
echo"<strong>error:</strong> cannot add the word..";
}
mysql_close($connect);
}
}
?>
- بيانات الإتصال في السطر 18
ملف القاموس :
كود PHP:
<?php
/*
المترجم
أول برنامج لترجمة الكلمات بلغة بي اتش بي
تم كتابة هذه البرنامج بواسطة
ضيف الله العتيبي
wwww.daif.net
d4d@hotmail.com
*/
?>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>القاموس</title>
<div align="center">
<div style="direction: rtl; font-weight: bold; background: #eee; padding: 10px; border: 1px solid #ccc; color: #444; width: 50%;">
<span style="font-size: large;">إبحث عن كلمة في القاموس :</span><br />
<form method="get" action="">
<input type="text" name="word" size="50" value="<? echo stripslashes($_GET['word']); ?>" /> <input type="submit" value="بحث" /><br />
<?php
if (isset($_GET['advanced']))
{
echo '<input type="hidden" name="advanced" value="1" />بحث : <input type="radio" name="type" value="1" checked="checked" /> مطابق | <input type="radio" name="type" value="2" /> تبدأ بـ | <input type="radio" name="type" value="3" /> تنتهي بـ';
}
else
{
echo '<a href="?advanced=1">بحث متقدم</a>';
}
?>
</form>
<div style="text-align: right;">
<?php
if (isset($_GET['word']))
{
if (!empty($_GET['word']))
{
$word = htmlspecialchars($_GET['word']);
$connect = mysql_connect("localhost","root","");
mysql_select_db("dictionary");
if (preg_match("/[a-zA-Z]/", $word))
{
$language = "english";
}
else
{
$language = "arabic";
}
if ($_GET['type'] == 1)
{
$query = "select * from dictionary where $language = '$word' limit 30";
}
elseif ($_GET['type'] == 2)
{
$query = "select * from dictionary where $language like '$word%' limit 30";
}
elseif ($_GET['type'] == 3)
{
$query = "select * from dictionary where $language like '%$word' limit 30";
}
else
{
$query = "select * from dictionary where $language like '%$word%' limit 30";
}
$result = mysql_query($query);
echo '<span style="font-size: large;">نتائج البحث عن <em>'.$word.'</em> :</span><br />';
if (mysql_num_rows($result) == 0)
{
echo "لم يتم إيجاد أي نتائج ..";
}
else
{
while ($row = mysql_fetch_array($result))
{
if ($language == "arabic")
{
echo '<em>'.$row["arabic"].'</em> : '.$row["english"].'<br />';
}
elseif ($language == "english")
{
echo '<em>'.$row["english"].'</em> : '.$row["arabic"].'<br />';
}
}
}
mysql_close($connect);
}
}
?>
<div>
</div>
- بيانات الإتصال في السطر 36
هذا التطوير مبدئي وإن شاء الله إن توفر لدي الوقت أكملت باقي التطويرات ولا مانع من تطويره من احد غيري بعد إذن الأستاذ ضيف طبعا 
* تطويرات قادمة :
- حماية ملف الإضافة بكلمة سر
- تعدد الصفحات للنتائج
- تحويل الى نظام القوالب بواسطة القالب السهل
- قاعدة بيانات جاهزة
- اظهار آخر الكلمات المضافة للقاموس
* من لديه اقتراح فليتفضل به هنا
* نظام الترميز هو utf-8
بالتوفيق للجميع