$stmtcon = $mysqli->prepare("Select content From tblcontent Where contentid =?");
$stmtcon->bind_param('s', $loadcontent);
$stmtcon->execute();
$stmtcon->bind_result($htmlcontent);
$stmtcon->fetch();
$stmtcon->close();
echo $htmlcontent;
The code works perfectly on my computer, but wont echo on the server I use. If i do an isset on the htmlcontent it comes back as true. Every other element on the page loads.
Is there anything in the settings, security wise that could be blocking this echo? the content contains html.
Thanks.
edit - I changed the type of the field to text from longtext, is there any reason why longtext wouldnt work, thanks for replies already ^_^
var_dump($htmlcontent)to see exactly what is in $htmlcontent.