I'm new to PHP and i'm just trying to get familiar with making database connections etc...
Here is my code:
<?
$connection = mysql_connect(localhost, root);
$database_select = mysql_select_db(mndb);
$query = "select addr from channels";
$result = mysql_query($query);
echo $result;
?>
when i browse to this page i get the following message:
Resource id #2
How do i go about displaying the data i'm querying from the sql database? do i need to put it in an array first?
thanks!