yes thats pretty easy... heres an example
first create a file called blank.php, the top part & bottom of the code includes get template, it will create a page almost identical to custom pages. The portion of code that is quoted is the database code, I use a seperate customer database that paypal can update to keeps track of payments made
<?php
require_once("class2.php");
require_once(HEADERF);
$ns->tablerender("Subscription Information", "");
// display customer notes
// Create connection
require_once("config.php");
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// open connection
$conn = new mysqli($servername, $username, $password, $dbname);
// test connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT payments FROM customers";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc())
{
echo "<br />";
$notes = $row["payments"]. "";
echo $payments;
}
}
else
{
echo "No payments posted";
}
$conn->close();
// include the template footer & routines
require_once(FOOTERF);
exit;
hope it helps