another cms class and DB design posted 
OK - been doing a little bit of work on the cms. Finally finished the validation class for user input. Took longer then I figured to get the methods the way I wanted them and then test it all. Didn't post the test script on the code snippet page since it was short and ugly. I will put it below though.
-
require_once('path/to/inc/Validate.class.php');
-
-
-
$input0 = 'true blue';
-
$input1 = '';
-
$input2 = 0;
-
$input3 = '0';
-
$input4 = 1;
-
$input7 = TRUE;
-
$input8 = NULL;
-
$input9 = 'me';
-
$input10 = 'me1';
-
$input11 = 'smile_2';
-
$input12 = 'kick_@ss';
-
$input13 = '745';
-
$input14 = '4.25';
-
$input15 = 1.35;
-
$input16 = '2.';
-
$input17 = 5;
-
$input19 = 'me@domain.com';
-
$input20 = 'ujrfc{ujrf}.yhtf@ok34rfn.-024u.au';
-
$input21 = 'Joe Smith <joesmith @domain.com>';
-
$input22 = 'http://www.khankennels.com';
-
$input23 = 'ftp://www.khankennels.com';
-
$input24 = 'https://www.khankennels.com';
-
$input25 = 'www.khankennels.com';
-
$input26 = 'khankennels.com/code/codeIndex.php';
-
$input27 = '1234567890';
-
$input28 = '(123)4567890';
-
$input29 = '123.456.7890';
-
$input30 = '123 456 7890';
-
-
-
// testing the isNotEmpty method
-
for ($i=0; $i<30 ; $i++)
-
{
-
$in = 'input'.$i;
-
}
I just changed the name of the method each time. Ugly isn't it
Anyway - I have created the basic database design in DBDesigner and posted the current design's data dictionary on the code Index page (if anyone wants to see it). I would appreciate any input on it. I haven't really looked at the PHPC design (have it somewhere on my computer) since this is for something a lot more basic.
Next - I think it will be time to make a few pages. One to accept new articles... don't think I'll let articles be deleted. The tutorials also says I need a new catagory page... don't see any reason to delete a category *shrug*. Need an index page also to pull the last 5 articles... Hmm. maybe a listing of all articles.
/me slaps herself. KISS - start at the beginning.