Hi there
I have a columnd called 'CT_Intitule' containing people's names formated like this :
SMITH John
JONES Bill
etc
there are also First Name and Family Name columns but the person who enters the users hasn't filled them all out
so i need to be able to find a user (who enters their First Name and Family Name into two separate form fields) in the "CT_Intitule" column
I'd like to do it like this :
$firstname=$_POST[firstname];
$surname=$_POST[surname];
"SELECT * FROM client WHERE ((CT_Intitule LIKE '%".$CT_Nom."%')AND(CT_Intitule LIKE '%".$CT_Prenom."%'))"
does that syntax look right to you ?
do i need to do $surname=strtoupper($_POST[surname]); or would the LIKE condition recognise that Smith==SMITH ?
thanks