PHP connect to MySQL

//Step3 $result = mysqli_query($db, $query); $row = mysqli_fetch_array($result); while ($row = mysqli_fetch_array($result)) { echo $row['day'] . ' ' . $row['userdata'] . ': ' . $row['paymentmode'] . ' ' . $row['id'] .'
'; } //Step 4 mysqli_close($db); ?>
Top