السلام عليكم ..
بدخل بالموضوع على طول ..
عندي جدل اخبار الموقع وابي اسوي فيه سكريب تعليقات
يعني اي واحد يقدر يضيف التعديل اللي تبيه
جدول الاخبار هو news
وجدول التعليقات هو replyكود PHP:CREATE TABLE `news` (
`news_id` int(11) NOT NULL auto_increment,
`news_name` text NOT NULL,
`news_date` text NOT NULL,
`news_img` text NOT NULL,
`news_txt` text NOT NULL,
`news_link` text NOT NULL,
`news_shaw` text NOT NULL,
KEY `news_id` (`news_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;
طبعا news_id اللي في التعليقات فيه رقم id الخبركود PHP:CREATE TABLE `reply` (
`id` int(10) unsigned NOT NULL auto_increment,
`news_id` int(11) NOT NULL,
`replier_name` varchar(200) NOT NULL,
`reply_date` varchar(200) NOT NULL,
`reply_text` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;
علما اني استخدم TemplatePower
خالص الشكر
الشحي


رد مع اقتباس
