Topic awaiting preservation: mysql and/or php question (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: under the bed |
posted 01-13-2005 16:30
Hopefully an easy question - |
Paranoid (IV) Inmate From: France |
posted 01-13-2005 16:35
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 |
posted 01-13-2005 17:16
though you really should have two seperat fields in this case. |
Maniac (V) Inmate From: under the bed |
posted 01-13-2005 17:42
well, in most cases, I'll use it as it is stored - with the comma. |
Bipolar (III) Inmate From: iasi, romania |
posted 01-13-2005 23:26
Was google or php.net down the day you asked this? |
Maniac (V) Inmate From: under the bed |
posted 01-13-2005 23:47
no, in fact it wasn't. |
Paranoid (IV) Inmate From: beyond the gray sky |
posted 01-14-2005 08:15
[venting] |
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 01-14-2005 09:30
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?" |