pixelpadre:
As I said earlier, "this didnt work for me"/ Maybe your advice will work.
I tried null for dbase number and it added 0.
Also, previous advice suggested using select NOW() for date. all that gives me is 00000000
The time issue certainly sounds like a mysql database setup issue (host related) or the absence of providing an appropriate date/time command/string (see the table configure settings below), but perhaps one or more of the following would provide a non-zero timestamp if used within a SQL statement:
CURDATE()
CURRENT_TIMESTAMP()
LOCALTIME()
LOCALTIMESTAMP()
SYSDATE()
UNIX_TIMESTAMP()
UTC_TIMESTAMP()
Though some of these only return dates not date and time.
Curious though, NOW() is typically used in ZC for changing settings such as configuration options. Does this mean that all of your configuration settings either show a date/time of when added or when modified as 0000-00-00 or not at all?
As to the null to 0, this appears to be related to the definition of the database table. The install sql declares the associated_db_id field as default null. Was there a problem with installation that required it to be modified? If not, then can you show an image of the area where you are entering your data to try to provide a rewritten uri.
Other question, in the attempts to obtain a functional version of the rewrite is there only one instance where the main_page of contact_us is listed and the active_uri is 1?
Here is the table creation sql for the ceon_uri_mappings table:
[code]CREATE TABLE
" . TABLE_CEON_URI_MAPPINGS . "
(
uri TEXT NOT NULL,
language_id INT(11) UNSIGNED DEFAULT NULL,
current_uri INT(1) UNSIGNED DEFAULT '0',
main_page VARCHAR(45) NULL,
query_string_parameters VARCHAR(255) DEFAULT NULL,
associated_db_id INT(11) UNSIGNED DEFAULT NULL,
alternate_uri VARCHAR(255) DEFAULT NULL,
redirection_type_code VARCHAR(3) DEFAULT '301',
date_added DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
INDEX assoc_db_id_idx (language_id, current_uri, main_page, associated_db_id)
);[/url]
Lastly for now, what is your mysql database setup? Is this hosted possibly on a Windows system? Or with database setup preventing integers or unsigned integers from being null? The other fields seemed to get populated with NULL but somehow in the "making" the associated_db_id NULL (which really is or should be done by adding nothing into the field because afterall, NULL is (should be) the default meaning it's automatically that until something else is assigned.