When I use:
<?php
$mysqli = mysqli_connect("removed", "removed", "removed", "removed");
$query = "SELECT posts.message FROM posts INNER JOIN threads ON posts.pid=threads.firstpost WHERE threads.firstpost='1' ";
$result = mysqli_query($mysqli,$query);
while ($row = mysqli_fetch_assoc($result)) {
echo $row['message'] . "<br/>";
}
?>
I get error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /removedURL/forumdisplay.php(1123) : eval()'d code on line 39
When I take away the set of line 39 and use this:
<?php
$mysqli = mysqli_connect("removed", "removed", "removed", "removed");
$query = "SELECT posts.message FROM posts INNER JOIN threads ON posts.pid=threads.firstpost WHERE threads.firstpost='1' ";
$result = mysqli_query($mysqli,$query);
?>
I get this error:
Error Type:
Catchable Fatal Error (4096)
Error Message:
Object of class mysqli_result could not be converted to string