[hr]This is my php code… works nice, but i want to style tat a bit using html, CSS… just to echo the results inside the div[hr]
[php]
<?php session_start(); ?> <?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["username"] ; echo $row["rollno"] ; } } else{ echo "No ID supplied"; } ?>[/php][hr]how to bring the retrieved data inside html (The variables wil hav to vary according to the id i supply)[hr]
[s] Franklin [/s]
[s] gdcfrank [/s]
[s] 123456 [/s]
[hr]Thank you in advance