DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Michael has posted 27 posts at DZone. View Full User Profile

Display Record Details

  • submit to reddit
        // Displays record details

$sql = mysql_query("SELECT * FROM table WHERE this = '$this'") or die (mysql_error());
$myrow = mysql_fetch_array($sql);

<?php echo $myrow["table_col1"] ?>
<?php echo $myrow["table_col2"] ?>