I need help displaying a simple query.
This is what I have so far....I need help with the output part...
<?php
// Connect to database server
$user="jrockfl";
$host="localhost";
$password="ja21son";
$database="new_db";
$connection = mysql_connect($host,$user,$password)
or die ("Couldn't connect to server");
$db = mysql_select_db($database,$connection)
or die ("Couldn't select database");
// Request all from the code snippets table
$query = "SELECT * FROM code_snippet";
$result = mysql_query("example", $query);
ok...what comes next? i just want to display all the results
my fieldnames are snippetid, snippet and code