![]() Topic awaiting preservation: mysql and/or php question (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: under the bed |
![]() Hopefully an easy question - |
Paranoid (IV) Inmate From: France |
![]() On the PHP side you could simplyexpode() the string. On the SQL side you'll certainly have to this by hand, that is you'll have to stuff your query with some string manipulation to find the position of the coma and split the value of the field in two accordingly. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() though you really should have two seperat fields in this case. |
Maniac (V) Inmate From: under the bed |
![]() well, in most cases, I'll use it as it is stored - with the comma. |
Bipolar (III) Inmate From: iasi, romania |
![]() Was google or php.net down the day you asked this? |
Maniac (V) Inmate From: under the bed |
![]() no, in fact it wasn't. |
Paranoid (IV) Inmate From: beyond the gray sky |
![]() [venting] |
Maniac (V) Mad Librarian From: Seoul, Korea |
![]() It is difficult sometimes to find information on something when you don't know exactly what you're looking for. Search engines are great, but they're not human beings. For example, if you tried to ask Google "How do I split a string into separate variables with PHP?" you would get a great big "Huh?" |