printf new rule doesnt work in wp
-
Hi,
Maybe this is some stupid syntax-error of me but when i want to use \n (new rule in php) it doesnt work in the wp-page.this is the code i put in the snippet:
<?php $mysqli = new mysqli("goatcup.be.mysql","goatcup_begoatcup","****","goatcup_begoatcup"); if ($mysqli -> connect_errno) { echo "Failed to connect to MySQL: " . $mysqli -> connect_error; exit(); } $sql = "SELECT voornaam, naam FROM reeks_a ORDER BY naam"; if ($result = $mysqli -> query($sql)) { while ($row = $result -> fetch_row()) { printf ( "%s %s\r\n", $row[0], $row[1]); } $result -> free_result(); } $mysqli -> close(); ?>
Thx for the help!
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘printf new rule doesnt work in wp’ is closed to new replies.