In the database table that I use for this script, the rows have characters (like ".", "_") with numbers together. How can I remove the characters and only fetch the numbers from the table? The php code that I use:
<html>
<head>
</head>
<body>
<table class="tbnar">
<tr>
<th>Enex</th>
<th>Snex</th>
</tr>
<?php
include ("config.php");
$sql = "SELECT Enex, Snex FROM sntab";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
$counter = 0;
while($row = $result->fetch_assoc())
{
echo "</td><td>". $row["Enex"] . "</td><td>" . $row["Snex"].
"</td></tr>";
$counter++;
if($counter % 33 == 0) { ?>
</table>
<table class="tbnar">
<tr>
<th>Enex</th>
<th>Snex</th>
</tr>
<?php }
}
echo "</table>";
} else { echo "0 results"; }
$conn->close();
?>
</table>
</body>
</html>