[PHP-DB] Re: Simulating a FORM POST thing (HELP!)

2002-05-27 Thread Peter
Have a look in the manual. It's something like createfrombmp(). Might be imagecreatefrombmp(). It's in the images section of functions. You might need to have the gd library installed for it to work. You could always use fopen() and fread() to open and read the file. Use it in binary mode for

[PHP-DB] db2/db3 stability?

2002-05-27 Thread Ivan Voras
I encountered serious problems using (Berkeley) db2 db3 support! 1) dba_open fails (!) when the open flag is set to c and the file exists (c flag means: create if not exist, open r/w otherwise). This error is reproducible with a simple php script started from a CGI version of php4. The error

[PHP-DB] Re: db2/db3 stability?

2002-05-27 Thread Ivan Voras
Ivan Voras [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | I encountered serious problems using (Berkeley) db2 db3 support! i forgot: both php4.1.x and 4.2.x behave the same... -- - Ivan Voras ivoras @ fer.hr - - I believe in youthenasia -

Re: [PHP-DB] db sql issue from var

2002-05-27 Thread Paul Burney
on 5/26/02 12:47 PM, Dave Carrera at [EMAIL PROTECTED] appended the following bits to my mbox: All you need to do is create an array from your sql like this: 1st place your dumped sql statement into a varibale. 2nd create an array from your sql like this if(isset($your_execution_var))

[PHP-DB] INSERT problem - please help!

2002-05-27 Thread Jen Swofford
I have a problem. I am working on two separate sites on two separate servers (one is Linux and one is Unix) and I am doing virtually the same thing with each, yet only one of them works. What can I be doing wrong? It is a simple form. I simply want to put information into a database. This is

Re: [PHP-DB] INSERT problem - please help!

2002-05-27 Thread Jason Wong
On Tuesday 28 May 2002 06:00, Jen Swofford wrote: I have a problem. I am working on two separate sites on two separate servers (one is Linux and one is Unix) and I am doing virtually the same thing with each, yet only one of them works. What can I be doing wrong? Check your php.ini files.

RE: [PHP-DB] INSERT problem - please help!

2002-05-27 Thread Jen Swofford
Sigh... they are set to On. Anything else anyone can think of? Jen On Tuesday 28 May 2002 06:00, Jen Swofford wrote: I have a problem. I am working on two separate sites on two separate servers (one is Linux and one is Unix) and I am doing virtually the same thing with each, yet only

[PHP-DB] Can you SUM(IF) from two different tables at the same time?

2002-05-27 Thread Richard Davey
Hi all, I'm using the following two queries: 1. SELECT SUM(IF(boardid='2',1,0)) AS b2, SUM(IF(boardid='1',1,0)) AS b1, COUNT(*) AS total FROM thread 2. SELECT SUM(IF(boardid='2',1,0)) AS b2, SUM(IF(boardid='1',1,0)) AS b1, COUNT(*) AS total FROM message This literally brings back a total

[PHP-DB] problems with BACKUP TABLE

2002-05-27 Thread Evgeny Chuykov
When try to use BACKUP TABLE, i get an error 'Failed copying .frm file: errno = 2' in the result table. What's the problem? P.S. SELECT VERSION() - 3.23.40 and type of the table is MyISAM (CHECK works fine). -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: