Hi All,
What a pain calendar dates are ! We have Mysql formats, PHP formats, Javascript formats...a pity they could not agree, worse than the EU.
I am trying to put a string date on an email using chronoforms...well that is what it does...so fine.
Then because I want to do MySQl things with it I want to put it into MySql in a Mysql DATE field, then I want to echo it into my Article including the weekday name, because many users don't pay enough attention and say later 'Oh I thought it was a Friday!'
So I have scanned this forum and like Bob's PHP method of exploding the string and reassembling it in Mysql order.
But Max advocates using Joomla functions like JReqest::setVar(....GetVar( ...));
Bobs is easier to follow but is it slower ?? Are the Joomla functions compiled rather than interpreted ?
If I put (bobs method) into the space 'after submit email' will it get done for insertion into the database ?
Because I have mixed table prefixes in my tables Joomla functions often do not work, which is a nuisance. Why have a prefix if you cannot change it ?? All my personal tables have a different prefix from the Joomla ones, so pure PHP stuff is thus easier to write and use than Joomla stuff.
Any Comments, Help, or Sympathy Welcomed http://www.chronoengine.com/forums/posting.php?mode=post&f=2#
--
Dave
What a pain calendar dates are ! We have Mysql formats, PHP formats, Javascript formats...a pity they could not agree, worse than the EU.
I am trying to put a string date on an email using chronoforms...well that is what it does...so fine.
Then because I want to do MySQl things with it I want to put it into MySql in a Mysql DATE field, then I want to echo it into my Article including the weekday name, because many users don't pay enough attention and say later 'Oh I thought it was a Friday!'
So I have scanned this forum and like Bob's PHP method of exploding the string and reassembling it in Mysql order.
But Max advocates using Joomla functions like JReqest::setVar(....GetVar( ...));
Bobs is easier to follow but is it slower ?? Are the Joomla functions compiled rather than interpreted ?
If I put (bobs method) into the space 'after submit email' will it get done for insertion into the database ?
Because I have mixed table prefixes in my tables Joomla functions often do not work, which is a nuisance. Why have a prefix if you cannot change it ?? All my personal tables have a different prefix from the Joomla ones, so pure PHP stuff is thus easier to write and use than Joomla stuff.
Any Comments, Help, or Sympathy Welcomed http://www.chronoengine.com/forums/posting.php?mode=post&f=2#
--
Dave