863
}
if (rtrim (odbo_result($result)
$success = true;
Susername)
و
ODBC PHP: 19
أخيراً، نستبدل التابع ()mysql_close بالتابع ()odbc_close:
Close the connection to
antabase
هذا ننتهي
من نقل الملف login.php من MySQL إلى ODBC. وكما في الفصل المتعلق بالنظام PostgreSQL ، نحتاج إلى إضافة إدخال مستخدم إلى الجدول Users:
sql INSERT INTO users VALUES ('jon secret! INSERT 101831 1
سنقوم الآن بنقل البرنامج النصي search.php . ولن نشغل أنفسنا هنا أيضاً إلا بالشيفرة المتعلقة
/ Connect to the My Berver
GL ale mysql_estor(1);
) Select the database
بقاعدة البيانات :
cyagi_select_db(brary:
fconal or die mysql_error{}} :
Query the database for the list of series
Saql = "SELBC series to book_series FROM Beries Fresult e mysql query/Baqi Soonn),
سبق وأن قمنا
بتغطية استبدال التوابع ( )mysql_connect و ( )mysql_select_db، و()mysql_query و
( )mysql_closes بتوابع ODBC الموافقة. لذا، سنركز فقط على شيفرة معالجة النتيجة:
Brint the Roptional Towe to the celets wice Butt && yagline TONS (570) 201
while ISLOW = mysul fetch saheelseefulti). Soption = sprince('Hoption valu
from series ID"]
echolmoption>No series are available</opti
ص٨٦٣