[PHP-DB] Re: select date YYYY-MM mysql help

2003-01-03 Thread Max Clark
12-01'and '2002-12-31'. > Otherwise try > where date > '2002-12-01 00:00:00'and date < '2002-12-31 23:59:59' > Regards > > Peter Goggin > - Original Message - > From: "Matthew Moldvan" <[EMAIL PROTECTED]> > To: &q

[PHP-DB] select date YYYY-MM mysql help

2003-01-02 Thread Max Clark
Hi all, I would like to do a query like this from mysql: select * from table where date = '2002-12'; However unless I have the complete date '2002-12-26' the query doesn't work correctly. What else do I need? Thanks in advance, Max -- PHP Database Mailing List (http://www.php.net/) To uns

[PHP-DB] Re: Newbie - Is this possible with mysql? can i fake it in php?

2002-12-12 Thread Max Clark
mysql mailing list that basically say > that this functionality (unions, subselects) does not exit within mysql yet > (I am just learning php/databases). > > Is there a way I can run this query in mysql? If not can I fake it out with > php? What would the best way to do that be? &

[PHP-DB] Newbie - Is this possible with mysql? can i fake it in php?

2002-12-12 Thread Max Clark
ay to do that be? Thanks in advance, Max "Max Clark" <[EMAIL PROTECTED]> wrote in message news:... > So I am trying to accomplish something like this: > > select a.domain, a.transport, sum(c.recipient_count) sum(c.recipient_size) > from transport as a, acl as

[PHP-DB] newbie - last_insert_id() with mysql

2002-12-12 Thread Max Clark
Hi- I am trying to insert information into mysql based with the sql queries below. When I run this insert from the mysql console everything works correct, however, when I run this through php the second sql query doesn't execute (I'm assuming there is a problem with the last_insert_id()). I have