PHP READ DATABASE

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Locked
ykarmi
Forum Commoner
Posts: 35
Joined: Mon Oct 30, 2006 4:45 pm

PHP READ DATABASE

Post by ykarmi »

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
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

You only need one thread for this :evil:
Locked