View Full Version : just need the user id
vbted
02-26-2005, 05:43 PM
vb3 - I just need a query to give me the users id # based on a custom profile field. I have been trying and searching for about a week now. I'm going to crack!! HELP!! PLEASE. - thanks -Ted
filburt1
02-26-2005, 06:29 PM
vb3 - I just need a query to give me the users id # based on a custom profile field. I have been trying and searching for about a week now. I'm going to crack!! HELP!! PLEASE. - thanks -Ted
Set $request like:
$request = addslashes(trim(strtolower("the search string")));
...then the query would be:
SELECT userid FROM userfield WHERE TRIM(LCASE(fieldx)) = "$request";
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.