You can't store the array as an array, but what you can do is serialize
the array to create a string, then store THAT in the database.
For example:
$myarray = your array of stuff;
$myserializedarray = serialize($myarray) ;
$myserialized array is now a string that you can store in the databa
> The latter:
> ---
> Use implode() and explode().
or serialize();
Chris
Not natively ... but you can with pstgreSQL.
Justin Buist
Trident Technology, Inc.
4700 60th St. SW, Suite 102
Grand Rapids, MI 49512
Ph. 616.554.2700
Fx. 616.554.3331
Mo. 616.291.2612
On Sun, 16 Sep 2001, Glenn B. wrote:
> Am I able to make a field an array in MySQL? Thanks.
>
>
>
> --
> PHP
On Sun, Sep 16, 2001 at 03:43:32PM -0400, Glenn B. wrote:
>
> Am I able to make a field an array in MySQL? Thanks.
>
What exactly do you mean?
Do you want to fetch fields in arrays or do you want store/retrieve the
contents of a field and use that as an array?
The former:
---
mysql_
> So, you would do:
> if ($x == 'CHECKED') { echo "Is Checked"; } else { echo "Isn\'t
> Checked"; };
> ?>
Or
(isset($x)) ? "Is Checked" : "Not Checked";
M@
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P
The value of a CHECKED Checkbox is 'CHECKED'
So, you would do:
hth
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."
--
PHP Datab