I am going to be searching on EXACT LIKE% and LIKE% in that order. I have the following sql lines that i know work fine
Code: Select all
set countrls [mysqlsel $mysql "SELECT COUNT(*) FROM pre WHERE rls = '$text2'" -list]
set countrls [mysqlsel $mysql "SELECT COUNT(*) FROM pre WHERE rls LIKE '$text2%'" -list]
set countrls [mysqlsel $mysql "SELECT COUNT(*) FROM pre WHERE rls LIKE '%$text2%'" -list]
i know its to do with "if" and elseif but just not sure of the code - anyone able to help me please.
cheers