Aldridge Software Limited
  Home     HTML     AJAX   PHP   FoxPro     CSS     MySql  
//Set up connection to the data
include "config.php";
myconfig();

if ((isset($_POST['page'])) || (isset($_GET['page']))) {
    if (isset($_POST['page'])) {
        $theid=$_POST['page'];
    }else {
        $theid=$_GET['page'];
    }

//create the query from the page id
$query = "select data from tabdata where id='$theid' ";
$result = mysql_query($query) or die('Query failed.');
if (mysql_num_rows($result)==1) {
    while($row = mysql_fetch_array($result)) {

//just return the text from the table
     echo nl2br($row["data"]);
    }
}else {
    echo "no data found";
}

Contact: noreply at AldridgeSoftware dot co dot uk