A little more detail about what you are doing would go a long way to clarifying your question. It *sounds* like you are trying to take a single string obtained from somewhere in a MySQL table and then split it into different parts with each part going into a separate element of an array, but that is a pretty odd thing to do so I suspect I am misunderstanding what you are trying to do.
Is pattern a single string from a MySQL table? If yes, what does it look like? If no, where *are* you getting it? A single row? A bunch of rows? Also, if you are asking for help about parsing 'pattern', you'll need to describe its contents so that we can give suggestions. For instance, are you parsing it on commas or spaces in 'pattern'? Rhino ----- Original Message ----- From: "Smelly Socks" <[EMAIL PROTECTED]> To: <mysql@lists.mysql.com> Sent: Saturday, April 30, 2005 5:48 PM Subject: Re: loading an array > Hi All! > > I am having a heck of a time figuring out how to get a string taken from a > MySql table into an array. I happen to be using PHP but I would appreciate > any pointers whatever in how to do this. > > I tried this: $array[] = $pattern; but it put the entire pattern into > $array[1]. I want each character in $pattern shoved into a corresponding > element of the array. > > Does anyone have any ideas? > > Thanks heaps! > > -Warren > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.11.0 - Release Date: 29/04/2005 > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.0 - Release Date: 29/04/2005 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]