Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to get name through id from mysql using php

 <?php
                   $value = $res['id'];
                   $selectquery2 = " select id,name from table where id = '$value'";
                                $resu2 = $database->query($selectquery2);
                                if ($res2 = mysqli_fetch_array($resu2)) { ?>
                                    <td name="id"><?php echo $res2['name']; ?></td>
                                <?php }
                                ?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #id #mysql #php
ADD COMMENT
Topic
Name
8+9 =