Re: [PHP-DB] two versions of php on same box, on has mysql support the other can't find it?

2006-10-08 Thread Chris
Eddie Peloke wrote: I have two php versions on one server. One of them has mysql support, the other has mssql support and is used to run scripts via the comand line. I am trying now to compile in mysql support to the command line one and I keep getting: configure: error: Cannot find MySQL he

Re: [PHP-DB] Files uploaded through a form

2006-10-08 Thread Chris
Ron Piggott (PHP) wrote: The way my web hosting server was configured is that files uploaded through a web form to be processed by PHP are owned by 'www'. I am wondering if I am able to change the owner of the file to my ftp user name before I use the move_uploaded_file command to the directory

Re: [PHP-DB] mysqli auto rollback on script termination

2006-10-08 Thread Chris
Martin Koch Andersen wrote: Hi, In case the PHP script dies (from fatal error, die() or similar), is any started transaction (BEGIN TRANSACTION) automatically rolled back (ROLLBACK) by PHP then? It should be rolled back when a connection is lost or a transaction isn't explicitly committed.

[PHP-DB] mysqli auto rollback on script termination

2006-10-08 Thread Martin Koch Andersen
Hi, In case the PHP script dies (from fatal error, die() or similar), is any started transaction (BEGIN TRANSACTION) automatically rolled back (ROLLBACK) by PHP then? I can't find any documentation about this. Thanks in advance for hints, links etc. -- Martin - http://925.dk "Shoot for the

Re: [PHP-DB] ECHO $variable

2006-10-08 Thread Jan Bailleul
You can as well add a backslash BEFORE the " eg. echo "text \"more text\" "; So that will return this: text "more text" - Original Message - From: "Bastien Koert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Sunday, October 08, 2006 3:35 PM Subject: RE: [PHP-DB] ECHO $variab

Re: [PHP-DB] SELECT date query

2006-10-08 Thread Bastien Koert
i tend to take the approach of $next_wed = date("Y-m-d", strtotime("next wednesday")); Bastien From: Niel Archer <[EMAIL PROTECTED]> Reply-To: php-db@lists.php.net To: php-db@lists.php.net Subject: Re: [PHP-DB] SELECT date query Date: Sat, 07 Oct 2006 05:49:36 +0100 Hi Ron I've made the ass

RE: [PHP-DB] ECHO $variable

2006-10-08 Thread Bastien Koert
easist way is to wrap the entire value in single quotes not double quotes...kinda breaks the rules but it will work..the other option is to search your value and do a replace on the double quotes bastien From: "Ron Piggott (PHP)" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: PHP DB Su