Hey everyone... I tried the suggestions that you gave me Sore & DoD... Thank you, but it didn't work... So, here I am back again looking for some more assistance... Any help that some one can give, would be greatly appreciated..
This is my situation...
In my database i have for example information stored like so (the hyphens are just so that you know the distinction between the field entries):
Ridley - 888-999-9999 - 11111111
Houston - 888-666-6666 - 22222222
Ridley - 888-999-9999 - 33333333
Ok, now.. This is what I currently have for my code:
$result = mysql_query("SELECT card_number FROM advantage WHERE name='Ridley' AND phone='888-999-9999' ");
while ($rowarray = mysql_fetch_array($result))
{
$test=$rowarray[card_number];
}
echo " $test ";
The above is only assigning the card number 11111111 to the variable $test because it is the first entry in the database with his information. I need to somehow make the variable $test echo all of the card numbers for the name Ridley. So, for example, if i echo for variable $test, it will give me 11111111, 33333333.
Again.. thanks for any assistance!