<?php

$link = mysql_connect('localhost', 'użytkownik', 'hasło');
mysql_select_db('book_videoplayer', $link);

$catID = 1;
$query = sprintf("SELECT v.name FROM videos v, categories c WHERE v.catId=c.id AND c.id=%d", $catID);

$result = mysql_query($query, $link);

while($row = mysql_fetch_array($result))
{
	print "Nazwa filmu: " . "<strong>" . $row['name'] . "</strong><br />";
}

?>
