<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>مدونة مبرمج مغربي</title>
	<atom:link href="http://www.bp.ma/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bp.ma</link>
	<description>مدونة برمجية اقوم باضافة اخر ما ابرمجه من برمجيات حرة ودروس واخبار تقنية</description>
	<lastBuildDate>Thu, 12 Aug 2010 11:12:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>رمضان كريم</title>
		<link>http://www.bp.ma/2010/08/12/%d8%b1%d9%85%d8%b6%d8%a7%d9%86-%d9%83%d8%b1%d9%8a%d9%85/</link>
		<comments>http://www.bp.ma/2010/08/12/%d8%b1%d9%85%d8%b6%d8%a7%d9%86-%d9%83%d8%b1%d9%8a%d9%85/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 11:12:39 +0000</pubDate>
		<dc:creator>عبد الواحد البشيري</dc:creator>
				<category><![CDATA[القسم العام]]></category>

		<guid isPermaLink="false">http://www.bp.ma/?p=453</guid>
		<description><![CDATA[بسم الله الرحمن الرحيم ابارك لكم شهر رمضان الذي ادعو الله ان يتقبل منا الاعمال الصالحة اللهم اكتبنا من المغفور لهم اللهم ارحم اباءنا واجدادنا في هذا الشهر وسائر الأوقات سبحان الله وبحمده سبحان الله]]></description>
			<content:encoded><![CDATA[<p>بسم الله الرحمن الرحيم</p>
<p>ابارك لكم شهر رمضان الذي ادعو الله ان يتقبل منا الاعمال الصالحة</p>
<p>اللهم اكتبنا من المغفور لهم</p>
<p>اللهم ارحم اباءنا واجدادنا في هذا الشهر وسائر الأوقات</p>
<p>سبحان الله وبحمده سبحان الله</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bp.ma/2010/08/12/%d8%b1%d9%85%d8%b6%d8%a7%d9%86-%d9%83%d8%b1%d9%8a%d9%85/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>5.3.3 php  في المتناول</title>
		<link>http://www.bp.ma/2010/07/22/5-3-3-php-%d9%81%d9%8a-%d8%a7%d9%84%d9%85%d8%aa%d9%86%d8%a7%d9%88%d9%84/</link>
		<comments>http://www.bp.ma/2010/07/22/5-3-3-php-%d9%81%d9%8a-%d8%a7%d9%84%d9%85%d8%aa%d9%86%d8%a7%d9%88%d9%84/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 21:10:56 +0000</pubDate>
		<dc:creator>عبد الواحد البشيري</dc:creator>
				<category><![CDATA[php  البي اتش بي]]></category>
		<category><![CDATA[اخبار تقنية]]></category>
		<category><![CDATA[5.3.3]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://www.bp.ma/?p=447</guid>
		<description><![CDATA[تم اصدار نسخة 5.3.3 اليوم الخميس 22/07/2010 من لغة php لن اتحدث اكثر من هذا واترككم مع الرابط لتكتشفوا الجديد http://www.php.net/archive/2010.php#id2010-07-22-2]]></description>
			<content:encoded><![CDATA[<p>تم اصدار نسخة 5.3.3 اليوم الخميس 22/07/2010 من لغة php</p>
<p>لن اتحدث اكثر من هذا واترككم مع الرابط لتكتشفوا الجديد</p>
<p><a href="http://www.php.net/archive/2010.php#id2010-07-22-2">http://www.php.net/archive/2010.php#id2010-07-22-2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bp.ma/2010/07/22/5-3-3-php-%d9%81%d9%8a-%d8%a7%d9%84%d9%85%d8%aa%d9%86%d8%a7%d9%88%d9%84/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>دورة في لغة Objective-C لانشاء تطبيقات أيفون</title>
		<link>http://www.bp.ma/2010/07/14/%d8%af%d9%88%d8%b1%d8%a9-%d9%81%d9%8a-%d9%84%d8%ba%d8%a9-objective-c-%d9%84%d8%a7%d9%86%d8%b4%d8%a7%d8%a1-%d8%aa%d8%b7%d8%a8%d9%8a%d9%82%d8%a7%d8%aa-%d8%a3%d9%8a%d9%81%d9%88%d9%86/</link>
		<comments>http://www.bp.ma/2010/07/14/%d8%af%d9%88%d8%b1%d8%a9-%d9%81%d9%8a-%d9%84%d8%ba%d8%a9-objective-c-%d9%84%d8%a7%d9%86%d8%b4%d8%a7%d8%a1-%d8%aa%d8%b7%d8%a8%d9%8a%d9%82%d8%a7%d8%aa-%d8%a3%d9%8a%d9%81%d9%88%d9%86/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 13:33:55 +0000</pubDate>
		<dc:creator>عبد الواحد البشيري</dc:creator>
				<category><![CDATA[اخبار تقنية]]></category>
		<category><![CDATA[دروس برمجية]]></category>
		<category><![CDATA[cours]]></category>
		<category><![CDATA[ihpone]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[objective-C]]></category>
		<category><![CDATA[الأيفون]]></category>
		<category><![CDATA[برمجة ايفون]]></category>
		<category><![CDATA[تعلم]]></category>

		<guid isPermaLink="false">http://www.bp.ma/?p=444</guid>
		<description><![CDATA[بسم الله الرحمن الرحيم وصلني بريد الكتروني من الأخ فيصل لكي اساعده على اخبار زوار المدونة  عن الدورة حقيقة المنتدى الذي تم وضع الدورة فيه لم اكن اعرفه من قبل للأمانة وانا لا اتحمل ما يوجد في المنتدى فقط اعطيكم رابط الدورة والذي اشكر كاتبها والاخ فيصل رابط الدورة اولا ثلاث دروس جمعتها في ملف [...]]]></description>
			<content:encoded><![CDATA[<p>بسم الله الرحمن الرحيم</p>
<p>وصلني بريد الكتروني من الأخ فيصل لكي اساعده على اخبار زوار المدونة  عن الدورة</p>
<p>حقيقة المنتدى الذي تم وضع الدورة فيه لم اكن اعرفه من قبل للأمانة وانا لا اتحمل ما يوجد في المنتدى</p>
<p>فقط اعطيكم رابط الدورة والذي اشكر كاتبها والاخ فيصل</p>
<p><a href="http://www.adslgate.com/dsl/showthread.php?t=581683" target="_blank">رابط الدورة </a></p>
<p>اولا <a href="http://bp.ma/wp-content/iphone/Objective-C.zip">ثلاث دروس</a> جمعتها في ملف مضغوط</p>
<p>والله الموفق</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bp.ma/2010/07/14/%d8%af%d9%88%d8%b1%d8%a9-%d9%81%d9%8a-%d9%84%d8%ba%d8%a9-objective-c-%d9%84%d8%a7%d9%86%d8%b4%d8%a7%d8%a1-%d8%aa%d8%b7%d8%a8%d9%8a%d9%82%d8%a7%d8%aa-%d8%a3%d9%8a%d9%81%d9%88%d9%86/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>اعتذار لزوار المدونة</title>
		<link>http://www.bp.ma/2010/07/13/%d8%a7%d8%b9%d8%aa%d8%b0%d8%a7%d8%b1-%d9%84%d8%b2%d9%88%d8%a7%d8%b1-%d8%a7%d9%84%d9%85%d8%af%d9%88%d9%86%d8%a9/</link>
		<comments>http://www.bp.ma/2010/07/13/%d8%a7%d8%b9%d8%aa%d8%b0%d8%a7%d8%b1-%d9%84%d8%b2%d9%88%d8%a7%d8%b1-%d8%a7%d9%84%d9%85%d8%af%d9%88%d9%86%d8%a9/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 13:11:30 +0000</pubDate>
		<dc:creator>عبد الواحد البشيري</dc:creator>
				<category><![CDATA[القسم العام]]></category>

		<guid isPermaLink="false">http://www.bp.ma/?p=436</guid>
		<description><![CDATA[السلام عليكم اعتذر كثيرا على الانقطاعات التي واجهت المدونة بسبب مشاكل في DNS سترجع المدونة كما كانت من قبل او احسن ان شاء الله&#8230; كما تم تغيير قالب المدونة  واشكر الأخ الدرازي على القالب الذي صممه خصيصا لمدونتي]]></description>
			<content:encoded><![CDATA[<p>السلام عليكم</p>
<p>اعتذر كثيرا على الانقطاعات التي واجهت المدونة بسبب مشاكل في <a href="http://ar.wikipedia.org/wiki/DNS" target="_blank">DNS</a></p>
<p>سترجع المدونة كما كانت من قبل او احسن ان شاء الله&#8230; كما تم تغيير قالب المدونة  واشكر الأخ <a href="http://aldirazi.com" target="_blank">الدرازي</a> على القالب الذي صممه خصيصا لمدونتي</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bp.ma/2010/07/13/%d8%a7%d8%b9%d8%aa%d8%b0%d8%a7%d8%b1-%d9%84%d8%b2%d9%88%d8%a7%d8%b1-%d8%a7%d9%84%d9%85%d8%af%d9%88%d9%86%d8%a9/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>تشغيل موديم LG HDM-2100 لشركة INWI على ubuntu</title>
		<link>http://www.bp.ma/2010/06/04/%d8%aa%d8%b4%d8%ba%d9%8a%d9%84-%d9%85%d9%88%d8%af%d9%8a%d9%85-lg-hdm-2100-%d9%84%d8%b4%d8%b1%d9%83%d8%a9-inwi-%d8%b9%d9%84%d9%89-ubuntu/</link>
		<comments>http://www.bp.ma/2010/06/04/%d8%aa%d8%b4%d8%ba%d9%8a%d9%84-%d9%85%d9%88%d8%af%d9%8a%d9%85-lg-hdm-2100-%d9%84%d8%b4%d8%b1%d9%83%d8%a9-inwi-%d8%b9%d9%84%d9%89-ubuntu/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 21:18:40 +0000</pubDate>
		<dc:creator>عبد الواحد البشيري</dc:creator>
				<category><![CDATA[3G]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[HDM]]></category>
		<category><![CDATA[INWI]]></category>
		<category><![CDATA[lg]]></category>
		<category><![CDATA[LG HDM-2100]]></category>

		<guid isPermaLink="false">http://www.bp.ma/?p=429</guid>
		<description><![CDATA[السلام عليكم LG HDM-2100 inwi قمت بجمع حزمة من المكتبات والبرامج والملفات لتشغيل  موديم 3G لشركة inwi المغربية الحزمة  عبارة عن ملفات تقوم بتنصيب البرامج مباشرة بعد الضغط عليه وهي بصيغةdeb كل ما عليك هو فك الحزمة وتنصيب البرامج حسب ارقام المجلدات لكي لا يقع اي خطأ اذا كنت قد قمت بتنصيب wvdialمن قبل  فتجاوز [...]]]></description>
			<content:encoded><![CDATA[<p>السلام عليكم</p>
<p>LG HDM-2100 inwi</p>
<p>قمت بجمع حزمة من المكتبات والبرامج والملفات لتشغيل  موديم <a href="http://ar.wikipedia.org/wiki/3G" target="_blank">3G</a> لشركة<a href="http://www.inwi.ma" target="_blank"> inwi</a> <span style="font-size: 13.2px;">المغربية</span></p>
<p>الحزمة  عبارة عن ملفات تقوم بتنصيب البرامج مباشرة بعد الضغط عليه وهي بصيغة<span style="font-size: 13.2px;">deb</span></p>
<p><img src="http://www.bp.ma/wp-content/3G/HDM2100.jpg" alt="" /></p>
<p>كل ما عليك هو فك الحزمة وتنصيب البرامج حسب ارقام المجلدات لكي لا يقع اي خطأ</p>
<p><span id="more-429"></span></p>
<p>اذا كنت قد قمت بتنصيب wvdial<span style="font-size: 13.2px;">من قبل  فتجاوز المجلد رقم ثلاثة</span></p>
<p>بعد التنصيب الكل بنجاح قم باعادة تشغيل  الجهاز واكتب  في الطرفية terminal</p>
<p>sudo  wvdial</p>
<p>وسيشتغل الموديم باذن الله</p>
<p>هذا الشرح خاص بشركة inwi اما اذا لم تكن في المغرب  وتستخدم نفس الموديم كل ما عليك هو فتح ملف wvdial.conf عن طريق هذا الأمر     في الطرفية</p>
<p>sudo gedit /etc/wvdial.conf</p>
<p>وقم بتغيير كلمة wana الى  اسم الشركة او حسب ما لديك من معطيات</p>
<p>للتحميل  اختر احد الروابط التالية</p>
<p><a href="http://rapidshare.com/files/395314899/LG-HDM-2100-ON-UBUNTU.tar.gz.html  " target="_blank">http://rapidshare.com/files/395314899/LG-HDM-2100-ON-UBUNTU.tar.gz.html</a></p>
<p><a href="http://www.bp.ma/wp-content/3G/LG-HDM-2100-ON-UBUNTU.tar.gz" target="_blank">او من هنا</a></p>
<p><a href="http://www.2shared.com/file/4Rfm3Z19/LG-HDM-2100-ON-UBUNTUtar.html" target="_blank">http://www.2shared.com/file/4Rfm3Z19/LG-HDM-2100-ON-UBUNTUtar.html</a></p>
<p>المرجو  نشر الحزمة على اكثر من مركز تحميل</p>
<p><span style="font-size: 13.2px;"> كما ابرئ نفسي من كل معصية لله سبحانه وتعالى تكون عبر البرامج التي جمعتها</span></p>
<p><span style="font-size: 13.2px;"> هذا فان اخطأت فمن نفسي ومن الشيطان  وان اصبت فبتوفيق من الله عز وجل</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bp.ma/2010/06/04/%d8%aa%d8%b4%d8%ba%d9%8a%d9%84-%d9%85%d9%88%d8%af%d9%8a%d9%85-lg-hdm-2100-%d9%84%d8%b4%d8%b1%d9%83%d8%a9-inwi-%d8%b9%d9%84%d9%89-ubuntu/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>نعم لقد اصبحت اب باذن الله</title>
		<link>http://www.bp.ma/2010/04/26/%d9%86%d8%b9%d9%85-%d9%84%d9%82%d8%af-%d8%a7%d8%b5%d8%a8%d8%ad%d8%aa-%d8%a7%d8%a8-%d8%a8%d8%a7%d8%b0%d9%86-%d8%a7%d9%84%d9%84%d9%87/</link>
		<comments>http://www.bp.ma/2010/04/26/%d9%86%d8%b9%d9%85-%d9%84%d9%82%d8%af-%d8%a7%d8%b5%d8%a8%d8%ad%d8%aa-%d8%a7%d8%a8-%d8%a8%d8%a7%d8%b0%d9%86-%d8%a7%d9%84%d9%84%d9%87/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 08:23:33 +0000</pubDate>
		<dc:creator>عبد الواحد البشيري</dc:creator>
				<category><![CDATA[القسم العام]]></category>
		<category><![CDATA[الحمد لله]]></category>
		<category><![CDATA[الله]]></category>
		<category><![CDATA[زواج]]></category>
		<category><![CDATA[مولودة]]></category>
		<category><![CDATA[هبة]]></category>

		<guid isPermaLink="false">http://www.bp.ma/?p=425</guid>
		<description><![CDATA[بسم الله الرحمن الرحيم الحمد لله من قبل ومن بعد الحمد لله الذي رزقني بالذرية الحمد لله الذي لم يجعلني فرد بعد  رحلة زواج دامت ما يقارب السنتين  &#8230;. ابشركم اصدقائي وزوار مدونتي ان الله تعالي وهب لي مولودة مساء امس الأحد 25/04/2010 على الساعة السابعة والنصف الحمد لله المولودة بصحة جيدة  , احببت ان اشارككم [...]]]></description>
			<content:encoded><![CDATA[<p>بسم الله الرحمن الرحيم</p>
<p>الحمد لله من قبل ومن بعد</p>
<p>الحمد لله الذي رزقني بالذرية</p>
<p>الحمد لله الذي لم يجعلني فرد</p>
<p>بعد <a href="http://www.bp.ma/2008/06/29/%D8%B9%D8%B7%D9%84%D8%A9-%D8%B2%D9%88%D8%A7%D8%AC/"> رحلة زواج </a>دامت ما يقارب السنتين  &#8230;. ابشركم اصدقائي وزوار مدونتي ان الله تعالي وهب لي مولودة مساء امس الأحد 25/04/2010 على الساعة السابعة والنصف</p>
<p><a href="http://www.bp.ma/images/nesma-26-04-2010.jpg"></p>
<div class="wp-caption aligncenter" style="width: 510px"><img title="نسمة البشيري" src="http://www.bp.ma/images/nesma-26-04-2010.jpg" alt="" width="500" height="375" /><p class="wp-caption-text">نسمة البشيري</p></div>
<p></a></p>
<p>الحمد لله المولودة بصحة جيدة  , احببت ان اشارككم الفرحة التي لا يعلمها الا من رزق بمولود لاول مرة</p>
<p>اللهم فرج كرب امهات فلسطين</p>
<p>اللهم ارزق كل مسلم الذرية الصالحة</p>
<p>اللهم ارجع بشبابنا الى الطريق المستقيم آمين ياربي</p>
<p>والسلام عليكم</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bp.ma/2010/04/26/%d9%86%d8%b9%d9%85-%d9%84%d9%82%d8%af-%d8%a7%d8%b5%d8%a8%d8%ad%d8%aa-%d8%a7%d8%a8-%d8%a8%d8%a7%d8%b0%d9%86-%d8%a7%d9%84%d9%84%d9%87/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>ادعم عبد الله عيد بما تستطيع</title>
		<link>http://www.bp.ma/2010/04/24/%d8%a7%d8%af%d8%b9%d9%85-%d8%b9%d8%a8%d8%af-%d8%a7%d9%84%d9%84%d9%87-%d8%b9%d9%8a%d8%af-%d8%a8%d9%85%d8%a7-%d8%aa%d8%b3%d8%aa%d8%b7%d9%8a%d8%b9/</link>
		<comments>http://www.bp.ma/2010/04/24/%d8%a7%d8%af%d8%b9%d9%85-%d8%b9%d8%a8%d8%af-%d8%a7%d9%84%d9%84%d9%87-%d8%b9%d9%8a%d8%af-%d8%a8%d9%85%d8%a7-%d8%aa%d8%b3%d8%aa%d8%b7%d9%8a%d8%b9/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 09:31:16 +0000</pubDate>
		<dc:creator>عبد الواحد البشيري</dc:creator>
				<category><![CDATA[القسم العام]]></category>
		<category><![CDATA[donate]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[ادعم]]></category>
		<category><![CDATA[الدعم]]></category>

		<guid isPermaLink="false">http://www.bp.ma/?p=422</guid>
		<description><![CDATA[بسم الله الرحمن الرحيم اليوم قرأت في مدونة المبرمج عبد الله عيد  عن موضوع دعم جهوده التعليمية وبما انني اعرف الأخ عبد الله عيد خير المعرفة منذ مدة طويلة من خلال المنتديات التعليمية  وانه انسان محب للخير وجدت انني من الواجب علي ان ادعمه بما استطيع وضعت بانر في الصفحة الرئيسية  للربط مع صفحته التي [...]]]></description>
			<content:encoded><![CDATA[<p>بسم الله الرحمن الرحيم</p>
<p>اليوم قرأت في مدونة المبرمج عبد الله عيد  عن موضوع دعم جهوده التعليمية</p>
<p>وبما انني اعرف الأخ <a href="http://blog.abdullaheid.net" target="_blank">عبد الله عيد</a> خير المعرفة منذ مدة طويلة من خلال المنتديات التعليمية  وانه انسان محب للخير وجدت انني من الواجب علي ان ادعمه بما استطيع</p>
<p>وضعت بانر في الصفحة الرئيسية  للربط مع صفحته التي تتكلم عن الدعم</p>
<p>وايضا سأضع في هذه التدوينة نص الرسالة:</p>
<div id="post-405">
<h1><span id="more-422"></span></h1>
<h1><span style="font-weight: normal;">ادعم عبدالله عيد</span></h1>
<h3><span style="font-weight: normal;">لاتقلق هي مجرد محاولة مني لتوسيع النشاط بشكل اكبر وأعدك مهما حصل فإن الدروس ستبقى مجانية ولكني أفكر في استخدام المال لأغراض مثل استئجار الأيدي العاملة ايضا لدعم المشروع  وجعله أكبر موقع للمحتوى العربي المجاني عن طريق دروس الفيديو فإن كانت لديك القدرة على الدعم </span><strong>فإقرأ مايلي</strong></h3>
<h3><strong><br />
</strong></h3>
<p>كما يعلم الجميع فإن الدعم في الأمور التي يكون فيها مساعدة للجمهور هو أمر ضروري لإستمرار تلك الأمور على ماهي عليه وبما أنني أعمل وحدي في هذا الأمر فإن هذا الأمر يتطلب نوعاً من الدعم ولذلك <strong>هناك نوعين من الدعم يمكنك المساعدة بها وهي</strong> :</p>
<h4>الدعم الإعلاني</h4>
<p>وهو يتضمن المساعدة في نشر الموقع إعلانياً وذلك بالصورة التي تجدها بالأسفل وذلك بوضعها في الموقع الخاص بك لكي تساعد في نشر الشبكة قدر الإمكان ونرجوا مراجعة هذه الصفحة في كل مرة لأنه سيتم وضع العديد من الصور وبمقاسات مختلفة.</p>
<p><img src="http://images.abdullaheid.net/adv/me/support-me-by-adv.png" alt="" width="200" height="60" /></p>
<p>واجعل الصورة تشير إلى الرابط التالي :</p>
<p>http://blog.abdullaheid.net/?page_id=405</p>
<p>وفي حال قمت بوضع الصورة في موقعك فنتمنى منك إرسال رسالة على البريد بعنوان الموقع الذي قمت بوضع الرابط فيه لأننا بصدد عمل احصائية والبريد وكل تفاصيل المراسلة موجودة في صفحة تواصل معي.</p>
<h4>الدعم المادي</h4>
<p>بالنسبة للدعم المادي فهو ضروري لإستمرار الموقع وبما أن الدروس جميعها مجانية وبدون مقابل فإن الدعم المادي ضروري والسبب أنه في كل سنة يطلب منا دفع رسوم السيرفر ودفع رسوم لمستضيف الفيديو ودفع رسوم الفيديو عالي الدقة ودفع رسوم الدومينات وأشياء كثيرة لذلك أردنا الدعم المادي لمواصلة المشوار وجعل الدورات مجانية , والدعم المادي على نوعين:</p>
<ul>
<li>دعم مادي بالإعلان ويتضمن <strong>طريقتين</strong> الأولى في<strong> الموقع</strong> حيث تقوم بإرسال بنر لموقعك أو لأي نشاط يخصك بإستثناء الأمور المحرمة مثل الأغاني وغيرها<strong> بمقاس ٢٠٠ عرض في ٦٠ ارتفاع بمبلغ ٢٥٠</strong> ريال في الشهر لكي تساعد هذه الرسوم في الأمور التي ذكرت آنفاً ولكي تساعد في شراء الأدوات اللازمة والتي تحسن من أداء الدورات ايضاً <strong>والطريقة الثانية هي وضع اعلان ثابت في الدروس بحيث يظهر اسم الموقع او صورة او شعار للموقع كيفما يريد في بداية الدرس فهو من حقه صفحة بيضاء كاملة يفعل فيها مايريد بمبلغ ٥٠٠ ريال وهي ثابتة لا تتغير</strong> أي بمجرد وضع الإعلان في الدرس فإن الدرس أينما ذهب سواء كان في الموقع الرسمي أو قام أحد بإنزاله أو<strong> تم نشره على أقراص</strong> فإن الإعلان ثابت ولن يتغير وللتوضيح فلو أن شخص أعلن في الدرس الأول من دروس بي اتش بي فإن هذا الدرس سيظل للأبد يحمل الاعلان الخاص بالموقع ولن يتغير إن شاء الله تعالى .</li>
<li>الدعم المادي <strong>بشراء الإسطوانات الخاصة بالدروس حيث يبلغ قيمة الدرس ريال سعودي واحد فقط</strong> فلو اراد شخص شراء ١٠٠ درس فإنها تكون بمئة ريال على قرص مضغوط وترسل إليه إن شاء الله على عنوانه الذي يزودنا به مع مراعاة أمور الشحن الداخلي والخارجي ووضعها في الحسبان ولذلك فإن إيصال القرص سيتطلب ربما بعض الأشياء الإضافية وسيتم التفاهم مع العميل في هذه الأمور في وقتها إن شاء الله تعالى .</li>
</ul>
<p>وأتمنى من الله سبحانه وتعالى أن أكون قد وفقت في إيصال الدروس المجانية للجميع وفي جميع انحاء العالم وبالصورة المطلوبة وأتمنى من الله أن نجد الدعم اللازم لمواصلة هذا المشوار ولجعل المشروع اكبر مشروع في العالم العربي لدعم محتوى الفيديو العربي المجاني.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bp.ma/2010/04/24/%d8%a7%d8%af%d8%b9%d9%85-%d8%b9%d8%a8%d8%af-%d8%a7%d9%84%d9%84%d9%87-%d8%b9%d9%8a%d8%af-%d8%a8%d9%85%d8%a7-%d8%aa%d8%b3%d8%aa%d8%b7%d9%8a%d8%b9/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>كتاب واشياء اخرى</title>
		<link>http://www.bp.ma/2010/04/23/%d9%83%d8%aa%d8%a7%d8%a8-%d9%88%d8%a7%d8%b4%d9%8a%d8%a7%d8%a1-%d8%a7%d8%ae%d8%b1%d9%89/</link>
		<comments>http://www.bp.ma/2010/04/23/%d9%83%d8%aa%d8%a7%d8%a8-%d9%88%d8%a7%d8%b4%d9%8a%d8%a7%d8%a1-%d8%a7%d8%ae%d8%b1%d9%89/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 08:52:52 +0000</pubDate>
		<dc:creator>عبد الواحد البشيري</dc:creator>
				<category><![CDATA[php  البي اتش بي]]></category>
		<category><![CDATA[القسم العام]]></category>
		<category><![CDATA[arccn]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[بي اتش بي]]></category>
		<category><![CDATA[تعليم]]></category>
		<category><![CDATA[لمة]]></category>
		<category><![CDATA[مولودة]]></category>

		<guid isPermaLink="false">http://www.bp.ma/?p=413</guid>
		<description><![CDATA[بسم الله الرحمن الرحيم بعد مدة ليست بالقصيرة اهملت مدونتي لاني كنت منشغل ببعض المشاريع ومشاغل الحياة اقدم لكم هذا الكتاب من تأليف محمد الرحيلي وهو ليس جديد ولكنه كتاب من نظرتي الأولى يستحق ان يبدأ منه اي متعلم جديد حيث يتدرج بك من السهل الى المعقد بطريقة مريحة وغير مملة لتحميل الكتاب كما انني [...]]]></description>
			<content:encoded><![CDATA[<p>بسم الله الرحمن الرحيم<br />
بعد مدة ليست بالقصيرة اهملت مدونتي  لاني كنت منشغل ببعض المشاريع ومشاغل الحياة<br />
اقدم لكم هذا الكتاب من تأليف محمد الرحيلي وهو ليس جديد ولكنه كتاب من نظرتي الأولى يستحق ان يبدأ منه اي متعلم جديد<br />
حيث يتدرج بك من السهل الى المعقد بطريقة مريحة وغير مملة</p>
<p><a href="http://bp.ma/php/php-arccn.pdf">لتحميل الكتاب</a></p>
<p>كما انني قمت بتعديل <a href="http://www.bp.ma/%D8%B3%D9%8A%D8%B1%D8%A9-%D8%B0%D8%A7%D8%AA%D9%8A%D8%A9"> صفحتي</a> الشخصية واضافة رابط <a href="http://www.bp.ma/contact-us">التواصل </a> معي عوض وضع  البريد الالكتروني</p>
<p>كما انني بدأت بلقي الأعمال البرمجية بشكل رسمي  بعدما كنت اتهرب منها لضيق الوقت</p>
<p>وابشركم انني انتظر مولودة باذن الله في هذه الأيام اتمنى من الله عز وجل ان تخرج الى هذه الدنيا معافاة من كل شر وين ترجع الى ربها موحدة عابدة لله عز وجل</p>
<p>بمجرد وصولها  سأبشركم ان شاء الله</p>
<p>اللهم ارزق امة محمد الذرية الصالحة والبركة في الرزق .. آمين ياربي<br />
هذا ما لدي الأن فان اخطأت فمن نفسي ومن الشيطان وان اصبت فمن الله عز وجل</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bp.ma/2010/04/23/%d9%83%d8%aa%d8%a7%d8%a8-%d9%88%d8%a7%d8%b4%d9%8a%d8%a7%d8%a1-%d8%a7%d8%ae%d8%b1%d9%89/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>المرجع العربي لمكتبة  jQuery</title>
		<link>http://www.bp.ma/2010/04/04/%d8%a7%d9%84%d9%85%d8%b1%d8%ac%d8%b9-%d8%a7%d9%84%d8%b9%d8%b1%d8%a8%d9%8a-%d9%84%d9%85%d9%83%d8%aa%d8%a8%d8%a9-jquery/</link>
		<comments>http://www.bp.ma/2010/04/04/%d8%a7%d9%84%d9%85%d8%b1%d8%ac%d8%b9-%d8%a7%d9%84%d8%b9%d8%b1%d8%a8%d9%8a-%d9%84%d9%85%d9%83%d8%aa%d8%a8%d8%a9-jquery/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 09:04:11 +0000</pubDate>
		<dc:creator>عبد الواحد البشيري</dc:creator>
				<category><![CDATA[JavaScript Ajax]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[كامل]]></category>
		<category><![CDATA[كتاب]]></category>
		<category><![CDATA[مرجع]]></category>

		<guid isPermaLink="false">http://www.bp.ma/?p=408</guid>
		<description><![CDATA[السلام عليكم هذا كناب من تأليف المهندس اسماعيل عنجرينيي يتكلم عن اوامر المكتبة ويشرحها بالعربية وهو كتاب مهم جدا لكي تتقنن اوامر المكتبة لتحميل الكتاب ايضا كتبت موضوع عنه على منتدى php http://forum.montadaphp.net/t8558]]></description>
			<content:encoded><![CDATA[<p>السلام عليكم</p>
<p> هذا كناب من تأليف المهندس اسماعيل عنجرينيي</p>
<p>يتكلم عن اوامر المكتبة ويشرحها بالعربية وهو كتاب مهم جدا لكي تتقنن اوامر المكتبة</p>
<p><a href="http://bp.ma/wp-content/learn_jquery/ArabicjQueryHelp.pdf">لتحميل الكتاب</a></p>
<p>ايضا كتبت موضوع عنه على منتدى php</p>
<p>http://forum.montadaphp.net/t8558</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bp.ma/2010/04/04/%d8%a7%d9%84%d9%85%d8%b1%d8%ac%d8%b9-%d8%a7%d9%84%d8%b9%d8%b1%d8%a8%d9%8a-%d9%84%d9%85%d9%83%d8%aa%d8%a8%d8%a9-jquery/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>التعامل مع الـ models في codeigniter</title>
		<link>http://www.bp.ma/2010/02/19/%d8%a7%d9%84%d8%aa%d8%b9%d8%a7%d9%85%d9%84-%d9%85%d8%b9-%d8%a7%d9%84%d9%80-models-%d9%81%d9%8a-codeigniter/</link>
		<comments>http://www.bp.ma/2010/02/19/%d8%a7%d9%84%d8%aa%d8%b9%d8%a7%d9%85%d9%84-%d9%85%d8%b9-%d8%a7%d9%84%d9%80-models-%d9%81%d9%8a-codeigniter/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 12:17:45 +0000</pubDate>
		<dc:creator>عبد الواحد البشيري</dc:creator>
				<category><![CDATA[framwork]]></category>
		<category><![CDATA[دروس برمجية]]></category>
		<category><![CDATA[codeifniter]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[اطار عمل]]></category>
		<category><![CDATA[درس]]></category>

		<guid isPermaLink="false">http://www.bp.ma/?p=396</guid>
		<description><![CDATA[بسم الله الرحمن الرحيم الموديل او Model وضيفته هي التحكم في البيانات الموجودة في القاعدة وهذا فقط للتنظيم لنعد الى موضعنا الان ... مسار الموديل هو application/models وداخله يتم وضع ملفات php باسم مثلا news_model.php ويكون على هذا المسار application/models/news_model.php طريقة انشاء كلاس الموديل هي على الشكل التالي PLAIN TEXT PHP: class News_model extends Model&#123; [...]]]></description>
			<content:encoded><![CDATA[<p>بسم الله الرحمن الرحيم</p>
<p>الموديل او Model وضيفته هي التحكم في البيانات الموجودة في القاعدة وهذا فقط للتنظيم  </p>
<p>لنعد الى موضعنا الان ... مسار الموديل هو application/models وداخله يتم وضع ملفات php باسم مثلا news_model.php ويكون على هذا المسار application/models/news_model.php<br />
طريقة انشاء كلاس الموديل هي على الشكل التالي<br />
<span id="more-396"></span></p>
<div class="igBar"><span id="lphp-11"><a href="#" onclick="javascript:showPlainTxt('php-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-11">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">class</span> News_model extends Model<span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> News_model<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; parent::<span style="color:#006600;">Model</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
طيب لنفرض انه لدينا جدول اخبار في القاعدة ونريد ان ننشئ دالة تقوم بعملية اظهار الأخبار ودالة اظهار خبر واحد ودالة مسح و دالة تعديل واضافة...<br />
هذا هو التنظيم والبرمجة النظيقة والمتعة ايضا.<br />
 اذا تابع معي ...</p>
<p>سنصنع كلاس يقوم بما ذكرت انفا</p>
<div class="igBar"><span id="lphp-12"><a href="#" onclick="javascript:showPlainTxt('php-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-12">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">class</span> News_model extends Model<span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//هذه الدالة ضرورية لمنداة model ويمكن استخدام دالة __construct لـ php5</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> News_model<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; parent::<span style="color:#006600;">Model</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//اظهار&nbsp; اخر عشرة اخبار مضافة</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> last_ten_news<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$tbl</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$query</span>=<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">db</span>-&gt;<span style="color:#006600;">order_by</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'id'</span>,<span style="color:#FF0000;">'desc'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$query</span>=<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">db</span>-&gt;<span style="color:#006600;">get</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$tbl</span>,<span style="color:#CC66CC;color:#800000;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$query</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// اظهار خبر واحد بدلالة رقمه</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> news_by_id<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$tbl</span>,<span style="color:#0000FF;">$id</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$query</span>=<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">db</span>-&gt;<span style="color:#006600;">where</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'id'</span>,<span style="color:#0000FF;">$id</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$query</span>=<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">db</span>-&gt;<span style="color:#006600;">get</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$tbl</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$query</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// اضافة بيانات الى القاعدة</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> add<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$tbl</span>,<span style="color:#0000FF;">$data</span>=<a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">db</span>-&gt;<span style="color:#006600;">insert</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$tbl</span>,<span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// تعديل البيانات بدلالة رقم الصف في القاعدة</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> edit<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$tbl</span>,<span style="color:#0000FF;">$data</span>=<a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>,<span style="color:#0000FF;">$id</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">db</span>-&gt;<span style="color:#006600;">where</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'id'</span>,<span style="color:#0000FF;">$id</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">db</span>-&gt;<span style="color:#006600;">update</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$tbl</span>,<span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//يرجع عدد الصفوف التي تم مسحها في حالتنا واحد واذا اعطانا صفر فانه لم يحذف اي صف</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">db</span>-&gt;<span style="color:#006600;">affected_rows</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//مسح صف في القاعدة بدلالة رقمه</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> delete<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$tbl</span>,<span style="color:#0000FF;">$id</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">db</span>-&gt;<span style="color:#006600;">where</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'id'</span>,<span style="color:#0000FF;">$id</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">db</span>-&gt;<span style="color:#006600;">delete</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$tbl</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//يرجع عدد الصفوف التي تم مسحها في حالتنا واحد واذا اعطانا صفر فانه لم يحذف اي صف</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">db</span>-&gt;<span style="color:#006600;">affected_rows</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
الأن انتهينا من ملف الموديل ونذهب لملف التحكم  لنطلب ملف الموديل ونستخدم الدوال التي كتبناها</p>
<p>ننشئ دالة داخل كلاس ملف التحكم</p>
<div class="igBar"><span id="lphp-13"><a href="#" onclick="javascript:showPlainTxt('php-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-13">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> insert<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// المفتاح news هو اسم الحقل في القاعدة </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span>=<a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'news'</span>=&gt;<span style="color:#FF0000;">'نص الخبر هنا نص الخبر هنا'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">news_model</span>-&gt;<span style="color:#006600;">add</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news'</span>,<span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
دالة add تقوم بادخال البيانات الى القاعدة وترجع الينا عدد الصفوف التي تم ادخالها كما شرحت من قبل<br />
والان سنضع شرط اذا تم الادخال نطبع رسالة نجاح</p>
<div class="igBar"><span id="lphp-14"><a href="#" onclick="javascript:showPlainTxt('php-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-14">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> insert<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// code html</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span>=<a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'news'</span>=&gt;<span style="color:#FF0000;">'نص الخبر هنا نص الخبر هنا'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">news_model</span>-&gt;<span style="color:#006600;">add</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news'</span>,<span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#41;</span>&gt; <span style="color:#CC66CC;color:#800000;">0</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'تم اضافة الخبر بنجاح'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#616100;">else</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'لم يتم اضافة اي شيئ'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
لاضافة البيانات ستطلب هذا الرابط http://localhost/index.php/news/insert<br />
كذلك يمكن استقبال مصفوفة $_POST ووضعها مكان $data عندما يتم اضافة الخبر من form</p>
<p>الأن نريد اظهار اخر عشرة اخبار تم اضافتهم وسنستخدم التي صنعناها في الموديل<br />
سيكون الكود كالتالي</p>
<div class="igBar"><span id="lphp-15"><a href="#" onclick="javascript:showPlainTxt('php-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-15">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> view<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//قمنا بتخزين النتائج في مصفوفة لنعرضها داخل ملف view</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'last_ten_news'</span><span style="color:#006600; font-weight:bold;">&#93;</span>=<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">news_model</span>-&gt;<span style="color:#006600;">last_ten_news</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//اعطينا المصفوفة لملف view وسميته ب last_ten_news.php داخل مجلد /views</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">load</span>-&gt;<span style="color:#006600;">view</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'last_ten_news'</span>,<span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
وملف الـ view باسم last_ten_news.php داخل مجلد /views وسيكون بسيط كالتالي</p>
<div class="igBar"><span id="lphp-16"><a href="#" onclick="javascript:showPlainTxt('php-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-16">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">foreach</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$last_ten_news</span>-&gt;<span style="color:#006600;">result</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$news</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;p style=<span style="color:#FF0000;">"background:silver;"</span>&gt;&lt;?php <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$news</span>-&gt;<span style="color:#006600;">news</span>; ?&gt;&lt;/p&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>والأن اذهب الى  http://localhost/index.php/news/view<br />
واذا اردنا اظهار خبر واحد يكفي ان نكتب هذه الدالة </p>
<div class="igBar"><span id="lphp-17"><a href="#" onclick="javascript:showPlainTxt('php-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-17">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> view_id<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$id</span>=<span style="color:#FF0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//قمنا بتخزين النتائج في مصفوفة لنعرضها داخل ملف view</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'last_ten_news'</span><span style="color:#006600; font-weight:bold;">&#93;</span>=<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">news_model</span>-&gt;<span style="color:#006600;">news_by_id</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news'</span>,<span style="color:#0000FF;">$id</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//اعطينا المصفوفة لملف view وسميته ب last_ten_news.php داخل مجلد /views</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">load</span>-&gt;<span style="color:#006600;">view</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'last_ten_news'</span>,<span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
ونطلب الخبر عن طريق الرابط http://localhost/index.php/news/view_id/1</p>
<p>الأن لحذف اي صف من صفوف الجدول في القاعدة سنستخدم دالة الحذف وتكون كالتالي</p>
<div class="igBar"><span id="lphp-18"><a href="#" onclick="javascript:showPlainTxt('php-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-18">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> delete<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$id</span>=<span style="color:#FF0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">news_model</span>-&gt;<span style="color:#006600;">delete</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news'</span>,<span style="color:#0000FF;">$id</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'تم المسح بنجاح '</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#616100;">else</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'لم يتم المسح او انه غير موجود'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
طبعا سيتم حفظ الكود داخل ملف التحكم news وسيتم منادة الرابط http://localhost/index.php/news/delete/1<br />
غير رقم واحد الى اي رقم صف في القادة وسيتم حذفه</p>
<p>الأن مع التعديل</p>
<div class="igBar"><span id="lphp-19"><a href="#" onclick="javascript:showPlainTxt('php-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-19">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> edit<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$id</span>=<span style="color:#FF0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$id</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#0000FF;">$data</span>=<a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'news'</span>=&gt;<span style="color:#FF0000;">'تعديل النص من جديد'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">news_model</span>-&gt;<span style="color:#006600;">edit</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news'</span>,<span style="color:#0000FF;">$data</span>,<span style="color:#0000FF;">$id</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'تم التعديل بنجاح '</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#616100;">else</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'لم يتم التعديل'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
لاحظت انني اضفت مدخل لكل من الدوال  delete و view_id و edit باسم $id<br />
نعم انه الرقم الذي نكتبه في الرابط يتم التعرف عليه تلقائيا </p>
<p>http://localhost/index.php/news/delete/1</p>
<p>وفي الأخير سيكون شكل ملف التحكم </p>
<div class="igBar"><span id="lphp-20"><a href="#" onclick="javascript:showPlainTxt('php-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-20">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">class</span> News extends Controller<span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> News<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; parent::<span style="color:#006600;">Controller</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#FF9933; font-style:italic;">// نقوم بطلب قاعدة البيانات</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">load</span>-&gt;<span style="color:#006600;">database</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#FF9933; font-style:italic;">// نطلب ملف الموديل</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">load</span>-&gt;<span style="color:#006600;">model</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news_model'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color:#000000; font-weight:bold;">function</span> index<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> view<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//قمنا بتخزين النتائج في مصفوفة لنعرضها داخل ملف view</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'last_ten_news'</span><span style="color:#006600; font-weight:bold;">&#93;</span>=<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">news_model</span>-&gt;<span style="color:#006600;">last_ten_news</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//اعطينا المصفوفة لملف view وسميته ب last_ten_news.php داخل مجلد /views</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">load</span>-&gt;<span style="color:#006600;">view</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'last_ten_news'</span>,<span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color:#000000; font-weight:bold;">function</span> view_id<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$id</span>=<span style="color:#FF0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//قمنا بتخزين النتائج في مصفوفة لنعرضها داخل ملف view</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'last_ten_news'</span><span style="color:#006600; font-weight:bold;">&#93;</span>=<span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">news_model</span>-&gt;<span style="color:#006600;">news_by_id</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news'</span>,<span style="color:#0000FF;">$id</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//اعطينا المصفوفة لملف view وسميته ب last_ten_news.php داخل مجلد /views</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">load</span>-&gt;<span style="color:#006600;">view</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'last_ten_news'</span>,<span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> insert<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// code html</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span>=<a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'news'</span>=&gt;<span style="color:#FF0000;">'نص الخبر هنا نص الخبر هنا'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">news_model</span>-&gt;<span style="color:#006600;">add</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news'</span>,<span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#41;</span>&gt; <span style="color:#CC66CC;color:#800000;">0</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'تم اضافة الخبر بنجاح'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#616100;">else</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'لم يتم اضافة اي شيئ'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> delete<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$id</span>=<span style="color:#FF0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">news_model</span>-&gt;<span style="color:#006600;">delete</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news'</span>,<span style="color:#0000FF;">$id</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'تم المسح بنجاح '</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#616100;">else</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'لم يتم المسح او انه غير موجود'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> edit<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$id</span>=<span style="color:#FF0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#0000FF;">$data</span>=<a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'news'</span>=&gt;<span style="color:#FF0000;">'تعديل النص من جديد'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">news_model</span>-&gt;<span style="color:#006600;">edit</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'news'</span>,<span style="color:#0000FF;">$data</span>,<span style="color:#0000FF;">$id</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'تم التعديل بنجاح '</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#616100;">else</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'لم يتم التعديل'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>درسنا القادم سيتكلم عن <del datetime="2010-02-20T10:57:54+00:00">الكائن db</del> المكتبات في codeigniter وجميع استخداماته والذي يسهل عليك الكثير من الوقت </p>
<p>هذا فان اصبت فمن الله عز وجل وان اخطات فمن نفسي ومن الشيطان</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bp.ma/2010/02/19/%d8%a7%d9%84%d8%aa%d8%b9%d8%a7%d9%85%d9%84-%d9%85%d8%b9-%d8%a7%d9%84%d9%80-models-%d9%81%d9%8a-codeigniter/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
