Forums
(@kylelanstead)
7 years, 4 months ago
That doesn’t work. That removes all formatting and adds dashes between the words.
Can this be used if I have a custom table? I.e. a table names ‘articles’? I have combined the posts from multiple WordPress sites (multi site install) and put them into a single table.
$conn = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); $sql = “SELECT * FROM wp_posts WHERE ID = ‘461’;”; $result = $conn->query($sql); while($row = $result->fetch_assoc()) { echo $row[“post_title”]; }