Hi I'm new to this forum so sorry if I do it wrong!
I've got a list of 160 URL's in a db table and the rows are shown like:
<?php
require_once "config/config.php";
$sql = "SELECT * FROM deployments";
if($result = mysqli_query($link, $sql)){
if(mysqli_num_rows($result) > 0){
while($row = mysqli_fetch_array($result)){
?>
<tr>
<td> <?php echo $row['id'] ?></td>
<td> <?php echo $row['server'] ?></td>
<td> <?php echo $row['name'] ?></td>
<td> <?php echo $row['url'] ?></td>
<td> <?php echo $row['port'] ?></td>
<td><span class='badge badge-warning'>LIVE</span></td>
<td><a href="config/remove.php?id=<?php echo $row['id']; ?>"><span class="fa fa-trash"></span></a></td>
</tr>
<?php
}
mysqli_free_result($result);
} else{
echo "No records matching your query were found.";
}
} else{
echo "ERROR: Could not able to execute $sql. " . mysqli_error($link);
}
?>
Is it possible to use fsoc or curl to ping the URL's pulled from the db after made visible on the webpage with line:
<td> <?php echo $row['url'] ?></td>
I've tried this but I can't seem to get it to work, I had it working when I pulled the data from an array but I want the data to come from the db.
Thank you, and if I need to change something let me know and I will edit my post.