Your connect.php file is probably missing a mysql_select_db() statement. Check that.
Check for MySQL errors before processing the result of a query. Most likely your query went wrong some way, so mysql_query() did not return a valid result and thus mysql_fetch_assoc() fails.
// ...
$PK = mysql_query($sql_PK, $connect);
if ( mysql_error() ) {
die ( mysql_error();
}
$row_PK = mysql_fetch_assoc($PK);
// ...
Besides: mysql_x() functions are deprecated. Use PDO or MySQLi instead.