Results 1 to 5 of 5

Thread: How to pass the value from the variable into the query

Threaded View

  1. #1
    Join Date
    Nov 2013
    Beans
    1

    How to pass the value from the variable into the query

    [C Programming Language]

    I've been try to perform the following query:

    Code:
    scanf("%32s", &user); (...)
    if(mysql_query(conn,"SELECT password From user where username='admin'"))
    
    //where you see 'admin' should be the value of the variable user
    how to pass the value from the variable user into the query?
    Ty guys!
    Last edited by QIII; November 5th, 2013 at 08:35 PM. Reason: formatting

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •