Variables
Posted: Sat Jan 09, 2010 12:37 pm
I tried to do a standard search of this topic, but it is hard to explain with just search words. This is probably really really really simple to solve as well.
Anyways, I am pulling results from my database where collegeID = $collegeID.
Say I want to display a college on my site with the collegeID that equals 200.
This is displays correctly if there is only 1 college ID in the field...say collegeID = 200.
But if there are more college ID's in the field...say collegeID = 200, 210, 220, it will not display this because, technically it won't really equal.
How do you assign collegeID to $collegeID where that dont have to equal, but have that value within the field?
I hope you understand.
Thanks for the help in advance.
Anyways, I am pulling results from my database where collegeID = $collegeID.
Say I want to display a college on my site with the collegeID that equals 200.
This is displays correctly if there is only 1 college ID in the field...say collegeID = 200.
But if there are more college ID's in the field...say collegeID = 200, 210, 220, it will not display this because, technically it won't really equal.
How do you assign collegeID to $collegeID where that dont have to equal, but have that value within the field?
I hope you understand.
Thanks for the help in advance.