![]() |
[طلب] تعديل على كود simplexml_load_file تحية طيبة اريد تعديل على هذا الكود هل هناك كود اكثر احترافية؟ اخطاء تظهر في الكود ادناه: Notice: Undefined variable: mysqli_result in Notice: Trying to get property of non-object رمز PHP: $xml1 =simplexml_load_file("URL-FEED") or die("error"); $xml1->channel->description; $logo= $xml1->channel->image->url; $name_site1 = $xml1->channel->item->title; $url1= $xml1->channel->item->link; $osf1= $xml1->channel->item->description; $dt1= $xml1->channel->item->pubDate; $t1= "name"; $select = mysqli_query($con,"select stitle from sites where stitle='$name_site2'"); $num1 = $mysqli_result->num_rows; if(!$num1){ $insert = $con->query("INSERT INTO `sites` (`sid` , `stitle` , `sname` , `slink` , `sallow` , `sdate`,`scatid`)VALUES ('' , '$name_site2', '$t2', '$url2', '$osf2', '$time' ,'$catid')"); } ملاحظة: كتبت موضوعا مشابها لكني نسيت ان تطلب تعديل على الملف المطلوب الآن هو تعديل على هذا الملف وشكرا |
الساعة الآن 08:58 AM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir