Heya, I’ve been using php for… about a year now, and I seem to have mastered all the area’s that I need, until now. It seems in a years time I have been able to do everything without the use of arrays! Anyways, I’m going to be working on a solution to the problem below, but would like to hear some of your solutions.
I have a database in which I have just one solitary box with this information:
[code=php]“00000Xaxei(01×01) says, "Hello."<br />” , “00000Bob(01×01) says, "Hiya."<br />”
and ect. What I am trying to do is make a chatbox in which each array element that starts with “000000” is displayed as is, and each “000001” should be displayed as is, but any other number should not be displayed.(e.g. 002001)
I was thinking using a loop to check each item in the array and display it if the number is 000000 or 000001 but if the number is anything else then it shouldn’t be displayed.
Thank you for all your help. I believe this can be done using an array and a loop… I just never use those so I’m not sure as yet how to do it. I appreciate any and all help with this situation.