title: how put user input into a variable in an SQL statement using c/c++
body: <p>I'm quite new in all this programming. But I wanted to know how to pass a variable value into an/a SQL/MYSQL statement in a C/C++ query code. </p>
  
  <p>For example, I wanted to select from database: mysql_query(conn, "select * from ;");
  Say that  is a variable and receives user's input. How do I actually do that? Any idea will be greatly appreciated.</p>