golds golds -3 years ago 69
PHP Question

How to assign a DB?

assign a value to database with php and sql.

Answer Source

If you’re trying to iterate through the results:

while ($row = mysqli_fetch_row($result)) {
      $haveOfficialPage = $row[0];
    // do something with the variable
}

If you’re getting only one record:

$row = mysqli_fetch_assoc($result);
$haveOfficialPage = $row["HaveOfficialPage"];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download