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 }}?>

Php Ajax Display Dynamic mysql data in bootstarp model::
https://www.webslesson.info/2016/09/php-ajax-display-dynamic-mysql-data-in-bootstrap-modal.html

Comments

Popular posts from this blog

Your app currently targets API level 27 and must target at least API level 28 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 28

ionic project creation

change root user in ubuntu