php - Show user meta from antoher wordpress instalation -


hello want show users wordpress installation. need show names , others metadata. i've trying following code, not able show metas separated.

// create connection $conn = new mysqli($servername, $username, $password, $dbname); // check connection if ($conn->connect_error) {     die("connection failed: " . $conn->connect_error); } $sql = 'select * sbdspass_usermeta'; $result = $conn->query($sql); if ($result->num_rows > 0) {     while($row = $result->fetch_assoc()) {         echo $row["meta_value"]; // show first name         echo $row["meta_value"]; // show last name     } } else {     echo "0 results"; } $conn->close(); 

i want show list of user, implement search query

anyone can me?


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -