So i’ve looked all over for information about this, and I found something that says that mysqli::get_result doesn’t work for PHP 5.4 and below, but running phpinfo() says that im on 5.5. I’m running and Ubuntu LAMP server, and the whole code works just fine on my XAMPP on OSX. The following is the code in question:
<?php
if ($videos = $mysqli->prepare("SELECT htmlcode FROM content WHERE datatype = 'Video' AND username = ?")) {
$videos->bind_param('s',$_SESSION['username']);
$videos->execute();
$result = $videos->get_result();
while ($row = $result->fetch_array(MYSQLI_NUM))
{
foreach($row as $r) {
echo "$r";
}
}
} else {
return false;
}
?>
Please help! Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
WELL, Resolved. I hope other people that run into this issue will see this.
I ran :
sudo apt-get install php5-mysqlnd
because php5-mysql does not support it. GOOD NEWS
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.