PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi there - can anyone tell me why this code is returning empty arrays to $totcount[]. I wish to find keywords within the database cell and record the number of 'hits' within the dynamic array. I suspect that I am not using arrays correctly - can anyone shed light on the subject?
Also you may use in_array() for $keyword instead of that for() loop, or even better only select this single field in your sql clause, since you search in only one database fieldname, not in all of them, aren't you?