Re: [PHP-DB] SELECT problem between MySQL 3.23 and MySQL 4

2004-07-02 Thread John W. Holmes
Chris Payne wrote: I'm using Booleans in my searches (New to it) but it works perfectly on my local 3.23 version of MySQL, but on the main server which uses version 4 of MySQL I get an error so there's an error in my Syntax. Here's what I currently use: [snip]

Re: [PHP-DB] new row object

2004-07-02 Thread John W. Holmes
Bob Lockie wrote: I use $row = fetch_row_object, array_push($row) and I want to manually insert a row at the end of my array to indicate if there are more rows. Is there a way to create a row object? class row { var $morerows = 'Yes'; } $more = new row; array_push($more); about all there is

[PHP-DB] Date problem: data is current as of yesterday

2004-07-02 Thread Karen Resplendo
The database queries all the sources at night after everyone has gone home. That means the data was current as of yesterday. This little snippet below returns yesterday's date, except that the first day of the month returns 0 for the day. Now, I know why this is happening, but I can't find out

Re: [PHP-DB] Date problem: data is current as of yesterday

2004-07-02 Thread jeffrey_n_Dyke
accidentally replied only to karen. The database queries all the sources at night after everyone has gone home. That means the data was current as of yesterday. This little snippet below returns yesterday's date, except that the first day of the month returns 0 for the day. Now, I know why

[PHP-DB] Multiple MSSQL Connections

2004-07-02 Thread Chris
I am currently writing code to write and read data to a Microsoft SQL 2000 database. At the same time I have sessions being recorded to another SQL 2000 database. Could these two database connections being open at the same time cause an access violation by php on a windows 2003 server? Thanks,

[PHP-DB] Query for Most Recent Entry

2004-07-02 Thread Thompson, Jimi
Hi, I'm trying to figure out how to write a MySQL query that will return the highest primary key a table. Thanks, Ms. Jimi Thompson, CISSP Manager, Web Operations Cox School of Business Southern Methodist University What kind of peace do we seek? Not a 'Pax Americana' enforced

Re: [PHP-DB] Query for Most Recent Entry

2004-07-02 Thread John W. Holmes
Thompson, Jimi wrote: I'm trying to figure out how to write a MySQL query that will return the highest primary key a table. 1) Why? 2) SELECT MAX(id) FROM table 3) If you're trying to find the key of the last row inserted to an auto_increment column, use mysql_insert_id() or LAST_INSERT_ID() in

[PHP-DB] Re: Query for Most Recent Entry

2004-07-02 Thread Chris
Is the primary key field numerical? If so then you can try to use an sql statement like: SELECT MAX(field) AS max_field FROM table GROUP BY max_field Chris Jimi Thompson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm trying to figure out how to write a MySQL query that will

Re: [PHP-DB] Multiple MSSQL Connections

2004-07-02 Thread Frank M. Kromann
That depends on the SAPI you are using. With CGI or FastCGI there is no problem but with ISAPI or Apache module you might get problems, as the DBLIB library used to build the extension is not thread safe. - Frank I am currently writing code to write and read data to a Microsoft SQL 2000

Re: [PHP-DB] Mysql 5.0 Redhat

2004-07-02 Thread Cole S. Ashcraft
You need to compile PHP with MySQL support. There is a php-mysql.rpm package, but I'm not sure if it will work with MySQL 5. You might just have to recompile PHP (but probably not). Cole Iain Wiseman wrote: Cole S. Ashcraft wrote: They are at http://dev.mysql.com/downloads/mysql/5.0.html. Iain