Can data in the database be displayed without using a while loop. Obviously only one record will get displayed.
Code:mysql_select_db("db", $con); $result = mysql_query("SELECT * FROM details"); while($row = mysql_fetch_array($result)) { echo $row['FirstName'] . " " . $row['LastName']; echo "<br />"; }


Reply With Quote
Bookmarks