my question is basically how to pass a parameter to a query in mysql. lets say i have a table with empno and empname and i want to select the empno based on the empname entered by the user. something like
i know this will work in access but in mysql it give me syntax error.
Code:
select empno from mytable where empname=[enter employee name];
Comment