How to write PHP code to access the first element till last element of the column Website and to pass the output to another php function.
<?php
$mysqli = new mysqli("localhost", "root", "", "wte");
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s
", mysqli_connect_error());
exit();
}
$query = "SELECT Website FROM websites";
if ($result = $mysqli->query($query)) {
// PHP code to access the first element till last element of the column Website and to pass the output to another php function
}
/* free result set */
$result->close();
}
/* close connection */
$mysqli->close();
?>