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!
I'm having a problem getting this code to work in a foreach loop - perhaps someone can see what I'm not. In the if statement I have to use the names instead of the variable the names are asigned to :
aceconcepts wrote:You could use the in_array() function
where?
anyway, I put back the $fieldname variable where the db names were, used is_int( ) instead of !is_int( ) then unset($fieldname) at the end -- it works now. Not sure why - but it does.