PHP READ DATABASE
Posted: Tue Jan 09, 2007 6:39 pm
Hey guys,
I wanted to know what code I should use to read from a database cell that has values separated by a comma?
Say I have the values 1,3,5 and now I want to check if 1 exists withing the string then $one = true for example. How do I verify if the number 1 exists in a certain string (from a database, if that even matters)?
Thanks a lot!
Yuval
I wanted to know what code I should use to read from a database cell that has values separated by a comma?
Say I have the values 1,3,5 and now I want to check if 1 exists withing the string then $one = true for example. How do I verify if the number 1 exists in a certain string (from a database, if that even matters)?
Thanks a lot!
Yuval