How to display echo value inside HTML div?

Dear Experts!
Please help me to display my echo value inside th div? i don know how to use echo value inside html div… please help :frowning:

My PHP script


<?php if (isset($_GET["id"])){ // Connect to database server mysql_connect("localhost", "root", "") or die (mysql_error ()); // Select database mysql_select_db("lms") or die(mysql_error()); // (Line 17) Get data from the database depending on the value of the id in the URL $strSQL = "SELECT * FROM login WHERE id=" . $_GET["id"]; $rs = mysql_query($strSQL); // (Line 21) Loop the recordset $rs while($row = mysql_fetch_array($rs)) { // Write the data of the person echo $row["firstname"] ; echo $row["lastname"] ; echo $row["rollno"] ; echo $row["date"] ; echo $row["phone"] ; echo $row["email"] ; } } else{ echo "No ID supplied"; } ?>


My HTML script

fname ----First name----Last name----
idno ---rollno---
date ---date---
phone ---phone---
email ---email---


Dear all,
i found the way to use echo value inside html div my myself…
thanks a lot. 8) 8) ;D

Sponsor our Newsletter | Privacy Policy | Terms of Service