Friday, November 4, 2016

connect to my via php OO

$conn = new mysqli($server, $db_username, $db_password, $dbname);
$result = $conn->query($sql);
if ($result->num_rows > 0) {...}
is_array($row = $result -> fetch_assoc());
$conn->close();

https://zhidao.baidu.com/question/2201572985022619508.html


No comments:

Post a Comment