Using the below code to try and get this database table to display using PHP..
Where am i going wrong....
Thanks Craig
//connect to the database
$mysql_access = mysql_connect("localhost", "root", "") or die( "Could not connect!" );
//select the database name
mysql_select_db("extranet1", $mysql_access) or die( "Could not select DB!");
$results = mysql_query( "select * from assets", $mysql_access);
while($row = mysql_fetch_array( $result ) ){//walk through the results array
unset( $selected_rows );
$selected_rows = "";
$selected_rows .= $row["filename"];//name is the column which correlates to the array index
$selected_rows .= ", ";
$selected_rows .= $row["color"];
$selected_rows .= ", ";
$selected_rows .= $row["time"];
$selected_rows .= ", ";
$selected_rows .= $row["annotation"];
$selected_rows .= ", ";
$selected_rows .= $row["timegen"];
$selected_rows .= ", ";
$selected_rows .= $row["node"];//name is the column which correlates to the array index
$selected_rows .= ", ";
$selected_rows .= $row["text"];
$selected_rows .= ", ";
$selected_rows .= $row["text"];
echo( $selected_rows );
}
//close the connection
mysql_close($mysql_access);