www.webdeveloper.com
Results 1 to 2 of 2

Thread: php function inside a mysql_query()

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Posts
    15

    Smile php function inside a mysql_query()

    I have one function that is $inloggad = $_SESSION['sess_user']; this function is to get the username from the logged in member

    my other function is $usertype= mysql_query("SELECT usertype FROM members WHERE usertype = 'write'");

    and I want to replace write in the end of that function with $inloggad but I just can't get it right.

    any idea of how to do this?

  2. #2
    Join Date
    Mar 2009
    Posts
    452
    mysql_query("SELECT usertype FROM members WHERE usertype = '$inloggad'");

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles