Hi,
I want to check a row in an mysql table for the username in php, if the username starts with ab to write an text.
the username is in a cell and looks like this: ab_12345453.
Thanks, Sebastian
EDIT:
thank you all for your reply.
but i need something else.
i need this for joomla, i don't need to make an query, i just use: $user->username
and i get the logged in username.
so i have the logged in username in a variable. how can i check that the username starts with ab_ ?
thank you again and sorry for the confusion :(