PHP Tutorial
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.
how to retrive data in php:
$sqlts = "select * from states";$rests= $conn->query($sqlts);
in html using:
<?php
if ($rests->num_rows > 0) {
while ($row = $rests->fetch_assoc()) {
?>
write the code here.......
for example
<tr><?php echo $row["state"]; ?></tr>
$row["state"] is the table column name in database.
<?php }}?>
https://www.webslesson.info/2016/09/php-ajax-display-dynamic-mysql-data-in-bootstrap-modal.html
Comments
Post a Comment