I've got a datbase with a simple table called "channels" which has 2 fields: id and link. I use this code in my php page to get the link of the channel with id 1:
<!DOCTYPE html>
<html>
<body>
<?php
$db = mysql_connect("localhost", "username", "");
mysql_select_db("my_database", $db);
$result = mysql_query("SELECT link FROM channels WHERE id='1'");
$data = mysql_fetch_array($result);
print $data;
?>
</body>
</html>
but what I get as output is a page with the text "Array" and anything else. id field is an INT value and link is TEXT. How can get my data correctly and print it?