cannot display users profile image and user description

<!DOCTYPE html> <?php $con=mysqli_connect(“localhost”,”root”,””,”social_network”); session_start(); include(“includes/header.php”); if(isset($_SESSION[‘user_email’])){ header(“location:index.php”); }else{ ?> <html> <head> <?php $user_name=”; if(isset($_SESSION[‘user_email’])){ $user=$_SESSION[‘user_email’]; $get_user=”select*from users where user_email=’$user'”; $run_user=mysqli_query($con,$get_user); $row=mysqli_fetch_array($run_user); $user_name=$row[‘user_name’]; } ?> <title><?php echo “$user_name”; ?></title> <meta charset=”utf-8″></meta> <meta name=”viewport” content=”width=device-width, initial-scale=1″></meta> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css”></link> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js”></script> <script src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js”></script> <link rel=”stylesheet”type=”text/css”href=”style/home_style2.css”></link> </head> <style> #cover-img{ height:400px; width:100%; } #profile-img{ position:absolute; top:160px; left:40px; }…

Details

Replace specific column values in pandas dataframe [duplicate]

This question already has an answer here: pandas replace multiple values one column 5 answers df = pd.DataFrame({‘Tissues’:[‘a1′,’x2′,’y3′,’b’,’c1′,’v2′,’w3′], ‘M’:[1,2,’a’,4,’b’,’a’,7]}) df.set_index(‘Tissues’) The dataframe looks like: M Tissues a1 1 x2 2 y3 a b 4 c1 b v2 a w3 7 How can I replace all as in column M with say a specific value, 2…

Details

Why does Python docx or lxml move attributes from one node to another?

I have a .docx document and I want to do some parsing. I do it like so: >>> from docx import Document >>> from lxml import etree >>> doc = Document(“template1.docx”) >>> etree.tostring(doc._element.body, encoding=’unicode’, pretty_print=False) What I get as a result looks like so: <w:body xmlns:w=”http://schemas.openxmlformats.org/wordprocessingml/2006/main” xmlns:wpc=”http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas” xmlns:cx=”http://schemas.microsoft.com/office/drawing/2014/chartex” xmlns:cx1=”http://schemas.microsoft.com/office/drawing/2015/9/8/chartex” xmlns:cx2=”http://schemas.microsoft.com/office/drawing/2015/10/21/chartex” xmlns:cx3=”http://schemas.microsoft.com/office/drawing/2016/5/9/chartex” xmlns:cx4=”http://schemas.microsoft.com/office/drawing/2016/5/10/chartex” xmlns:cx5=”http://schemas.microsoft.com/office/drawing/2016/5/11/chartex” xmlns:cx6=”http://schemas.microsoft.com/office/drawing/2016/5/12/chartex” xmlns:cx7=”http://schemas.microsoft.com/office/drawing/2016/5/13/chartex”…

Details