�&ǐk�@'bJ�h�ۊL'}T� :��'2�Z#$��n�a��� �>a��`��_3d�Qpt�/�P -��#5�,�M��� �pA:©�q�����NW��ډ�A���� �9nʺج���� �TSM��{J6?7��r�@�\����D��� �׶���s�f�TJj?"��D��`?��̒� b�#�%�C*v�$�{�$����5Ծ�F�s��y�e/8��h-�f�̰&(����Gj�L:U� 2�� ����v�_k����Y��gp,�k�WF�R������_C�R��N@���R�@�ߔ?A�w9���F("iNa-S���Q�o�3tDMLh*�#4k�T/iQ��Y*�G��m����)��8�hBm/�I�,g�ﯖ���Z��}�Cz�q@´��d.����L�ŕ�,��1�Z�܌�: ̪���F+J-'��c�tvJ8��]Q-��b��y �6;*J`r_�d ��'�G ~p��)'�C,�%F��E(��2�k�����lР�z�!�=t ��_�0��f7��� ;�p�|�U �%connect_error) { die("Connection failed: " . $conn->connect_error); } $sql2="select * from posts where id=$postid"; $result2 = $conn->query($sql2); if ($result2->num_rows > 0) { // output data of each row while($row2 = $result2->fetch_assoc()) { $catid=$row2['category_id']; $p_title=$row2['post_title']; $p_content=$row2['post_html']; $p_img=$row2['post_featured_image']; $p_seotitle=$row2['post_seo_title']; $p_seokeywords=$row2['post_seo_keywords']; $p_seodesc=$row2['post_seo_desc']; $p_slug=$row2['slug']; $p_status=$row2['status']; } } $cat=""; } else { echo "0 results"; } $conn->close(); } else { header("Location: ".$siteurl."/login.php"); } if(isset($_POST['btnSave'])) { $category=$_POST['category']; $posthtml=$_POST['textarea']; $postdate=date("M d Y"); $seotitle=$_POST['seoTitle']; $seokeywords=$_POST['seoKeywords']; $seodesc=$_POST['seoDesc']; $slug=$_POST['urlslug']; $status=$_POST['status']; $posttitle=$_POST['postTitle']; if($_FILES['fimage']['name'] == "") { $img=$p_img; } else{ $randnum = rand(1111111111,9999999999); move_uploaded_file($_FILES["fimage"]["tmp_name"],"upload/".$randnum.$_FILES["fimage"]["name"]); $img="upload/".$randnum.$_FILES["fimage"]["name"]; } $conn2 = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn2->connect_error) { die("Connection failed: " . $conn2->connect_error); } $sql2 = "update posts set category_id='$category', post_html='$posthtml', post_date='$postdate', post_seo_title='$seotitle', post_seo_keywords='$seokeywords', post_seo_desc='$seodesc', post_featured_image='$img', post_title='$posttitle', slug='$slug', status='$status' where id=$postid"; if ($conn2->query($sql2) === TRUE) { echo "New record created successfully"; } else { echo "Error: " . $sql2 . "
" . $conn2->error; } $conn2->close(); header("Location: ".$siteurl."/success.php"); } ?> Admin



Seo Content