Andy, that worked nicely. Table names are different in vB 3.5 and the query was pretty straightforward in the end. Now I need to be careful I don't go query crazy and slow the site down too much!
For anyone using the code above, not that $user and $pass are only shorthand for $username and $password i.e. make sure you use the same variable name in all instances .
For anyone using the code above, not that $user and $pass are only shorthand for $username and $password i.e. make sure you use the same variable name in all instances .