Any examples would be great to get me going... as im not overly skilled with php right now and any help would be great.
except about the tables i use css to layout things with mine but pretty much you hit the nail on the head Nathj.
Thanks for the help here people.
DD
When I mentioned tables I meant as in a database - I never use tables on a website - I hate them, it's css all the way - though css3 promises CSS tables which look interesting.
Anyway I digress. It's examples you are after. Here's a simple code snippet from my code library that will get information from a table and display it as HTML
[PHP]
function __autoload($pcClassName)
{
require_once '../lib/' . $pcClassName . '.php' ;
}
$loDataObject = new dataObject() ;
$lcDisplay = "" ;
$lnPageID = $_GET['page'] ;
$lcSelect =
"SELECT
a.ID, a.menuID, a.title, a.content
FROM tbl_content a
WHERE a.ID = $lnPageID" ;
$laContent = $loDataObject->queryGetData(false, $lcSelect) ;
if($laContent)
{
foreach($laContent as $laContentRow)
{
$lcDisplay .= '<h1>' . $laContentRow['title'] . '</h1>' ;
$lcDisplay .= $laContentRow['content'] ;
}
echo $lcDisplay ;
}
[/PHP]
for information on the dataObject read this
article
this code simply gets information from a DB and displays the heading adn the paragraphs. any specific formatting can be done in the field content as this is a longtext field in a MyISAM DB.
As for the SJAX side of things I recommend having a read of the
PHP tutorial especially the sections about MySQL and AJAX.
This should get you started, if you get stuck with any specifics as you go give me a shout and I'll do my best to help out.
Cheers
nathj