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
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 =
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
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]
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
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
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
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 =
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
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
10 matches
Mail list logo