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

how to split array as per fixed length, and ionic two dates differences in min,seconds,hours

How to Add Firebase Analytics to Your NativeScript Mobile App