EDIT: i've got to be overlooking something "trivial" here that's causing this. i modified the ADDDATE to DATE_ADD, set the proper db info, AND added my custom mysql error (as shown below... waaay below) -- and still-- all i get is the "masthead"
<?php
// as its an:
import 'inc/header.inc.php';
// ... sort of thing..
?>
... as if i'm viewing an incomplete page, ya know?
Next Step: Create a very simple db test page. SELECT * FROM sort of thing...
Roger Ramjet wrote:Stupidity! Laziness! Backward-compatibility! Lack of demand!
that's what i thought [i.e. "laziness" or just no need to bump up to 5.0 from previous 4.1 installs].
i asked because [unrelated to this issue particularly, but relevant] i'm working w/ someone, co-administering a cPanel VPS. he's been in the biz since around '95, has done the BSDi thing old-school SSH style, and only now getting into the cPanel method. he opted for MySQL 4.1 in his setup. i thought it odd to actually install 4.1 instead of 5.0-- considering that he's got the actual WHM updating on nightly builds, and the newest PHP and Zend Opt., etc-- yet the Mysql4.1 threw me-- so i thought perhaps there was a specifc known "defect" in MySQL 5.0+ that i wasn't aware of, etc perhaps i can convince him to move to 5.0. i mean-- if 5.0 is a standard issue on FC5 (according to my distro at least), then it can't be all bad, right?
RogerRamjet wrote:
I don't know what effect setting it "Enable for 4.0 compatibility" has, but ADDDATE is only supported for 4.1+ , before that you had to use DATE_ADD
are you saying that:
BETWEEN '$startDate' AND ADDDATE('$startDate', INTERVAL 2 WEEK)
is a 5.0 syntax, and DATE_ADD is standard SQL, yet understood by 4.1 (and) 5.0?
OR are you saying that ADDDATE should be recognized by both as well?
if ADDDATE is 4.1+ (i think that's what you said?), and i'm using 4.1 and ADDDATE... then... it's not making much sense either.
i have the die(mysql_error()) thing [always] but i thought perhaps i needed to add something like:
die ('I cannot connect to the database because: ' . mysql_error()); (cause i ususally do as you put, w/ just the system errors).
i'm glad to hear that you recommend against 4.1 locally-- i didn't think i should need to do that either. my next move was going to be combing the manual for signs of "backward / non-backward compatibility" vs the SQL that NoggDogg provided-- so i'm glad that you pointed that bit out for me. i should have recognized it myself-- after all, i was trying to use DATE_SUB before i started this thread. doh!
thanks RR and ND for your help on this issue.