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

push multiple data in array(select and disselect items in array)

how to active side menu in ionic3

how to add accordian to ionic project