[PHP-DB] explode() and a database call...?

2004-05-18 Thread Tristan . Pretty
I'm trying to split up a field from a database that contains a list of No's (Eg:1, 4, 12, 32) If I do: $bands_array = explode(,, 1, 4, 12, 32); I get the following array: $bands_array[0] = 1 $bands_array[1] = 4 $bands_array[2] = 12 $bands_array[3] = 32 All good! However... Calling froma

Re: [PHP-DB] explode() and a database call...?

2004-05-18 Thread Mikhail U. Petrov
Hi! You should use $row[bands]. But maybe it's only typing error. I use such methos and have no errors. Tuesday, May 18, 2004, 7:02:34 PM, Tristan wrote: TPrsc I'm trying to split up a field from a database that contains a list of TPrsc No's (Eg:1, 4, 12, 32) TPrsc If I do: TPrsc $bands_array =

Re: [PHP-DB] explode() and a database call...?

2004-05-18 Thread Tristan . Pretty
HH, didn't work...? Mikhail U. Petrov [EMAIL PROTECTED] 18/05/2004 16:20 Please respond to Mikhail U. Petrov [EMAIL PROTECTED] To [EMAIL PROTECTED] cc [EMAIL PROTECTED] Subject Re: [PHP-DB] explode() and a database call...? Hi! You should use $row[bands]. But maybe it's only

Re: [PHP-DB] explode() and a database call...?

2004-05-18 Thread Torsten Roehr
Tristan Pretty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] com... HH, didn't work...? Please echo out $row['bands'] and post the contents. Regards, Torsten Mikhail U. Petrov [EMAIL PROTECTED] 18/05/2004 16:20 Please respond to Mikhail U. Petrov [EMAIL PROTECTED]

[PHP-DB] SQLite and PHP4

2004-05-18 Thread Eli White
After playing around some with SQLite with PHP5, I decided that I wanted to have it working in PHP4 to start using it fully while waiting for PHP5 to come out. However, I ran into a snag ... after downloading it/phpizeing/configure/make/makeinstall ... I added the extension=sqlite.so line to

[PHP-DB] SQL Statement

2004-05-18 Thread Thompson, Jimi
For some background, I've been tasked with building a marketing tracking application by the PHB's who think that being able to write SQL means you can code. I know how to get data into a database and I can do thing with it once it's in there, but this is one of my first attempts at extracting

Re: [PHP-DB] SQL Statement

2004-05-18 Thread Cal Evans
Jimi, PHP does not return an error because it knows nothing about valid sql. It's just knows if it's a valid PHP statement. (which it is because you've got the 's in the right place and a ; at the end. ) :) It's up to MySQL to return an error. As to your statement. 1: It's easier and valid in

Re: [PHP-DB] SQL Statement

2004-05-18 Thread John W. Holmes
Thompson, Jimi wrote: So then I try do this ?php if ($fk_phone != NULL) { $sqlwrk = SELECT `pk_phone_reports`, SUM(`calls`) AS `total_calls`, `date`, `calls` , `fk_ph_num` FROM `phone_reports`; $sqlwrk .= WHERE `pk_phone_number` = . $fk_phone; $rswrk =

[PHP-DB] mail() function and AOL users

2004-05-18 Thread matt perry
I use the following php mail function in an online applicaiton program: mail($email, application submitted, $message, From: [EMAIL PROTECTED]); This function does not always work when I modify $message. I have checked for null values for $message already but this does not seem to be the

[PHP-DB] Re: mail() function and AOL users

2004-05-18 Thread Manuel Lemos
Hello, On 12/12/2003 04:34 AM, Matt Perry wrote: I use the following php mail function in an online applicaiton program: mail($email, application submitted, $message, From: [EMAIL PROTECTED]); This function does not always work when I modify $message. I have checked for null values for