0

My webhost server is using libmysqlclient as the driver. Currently the only way that they can support MySQLND is via a VPS / dedicated server. And i don't want that.

I'm using php 7 btw...

This is a similar code that i am using.

    $stmt = $conn->prepare("SELECT name,email,keylog FROM user WHERE email=? AND name=? 
    AND keylog =? ");
    $stmt->bind_param("sss", $em, $nme, $k);

    $em = 'user@mail.com';
    $nme = 'joeDoe';
    $k ='123';
    $stmt->execute();

    $result = $stmt->get_result();
    if($row = $result->fetch_array()){
       $nameIs = $row['name'];
    }
    echo $nameIs;

I know i can use PDO, but i coded my whole project this way. I searched for alternatives and didn't find anything that works. What should i do?

Cœur
  • 37,241
  • 25
  • 195
  • 267
James Allan
  • 280
  • 5
  • 18

0 Answers0