Go to your WP directory, wp-content-> themes-> your_theme
make any simple php file
<?php
// Template Name: custom_page
get_header();
?>
your custom contents
<?php get_footer(); ?>
Then go to WP_ADMIN choose any page or create new page, go to Page Attribute, you will find "custom_page
" in Template Selction list..
for more details you can check this link
Edit :
No need to include or config extra database file, u can call it directly as all connections are already defined in header part.. you just try to add table and write simple query for fetching single result..it will work like charm..good luck..
EDIT 2 You can write query according to ur sql or sqli..
<?php
// Template Name: custom_page
get_header(); global $data;
$query = "SELECT id,lenght, height, width
FROM cabinets";
$result = mysql_query($query);
while($row = mysql_fetch_assoc($result))
{
echo " ".$row['lenght']. " , " .$row['height']. " , " .$row['width']. " ";
}
?>
<?php get_footer(); ?>