RE: [PHP-DB] Stupid question=p

2001-09-17 Thread Sam Masiello
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

RE: [PHP-DB] Stupid question=p

2001-09-17 Thread Boget, Chris
> The latter: > --- > Use implode() and explode(). or serialize(); Chris

Re: [PHP-DB] Stupid question=p

2001-09-16 Thread Justin Buist
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

Re: [PHP-DB] Stupid question=p

2001-09-16 Thread Andreas Landmark
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_

RE: [PHP-DB] Stupid question

2001-05-18 Thread Matt Williams
> 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

RE: [PHP-DB] Stupid question

2001-05-18 Thread Ben Cairns
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