I want to have function to get the user info, It works when I don't have it in a function, but when I do the *var* that *=* mysql_fetch_assoc($q) is an undefined variable. What could the problem be? Thanks.

Please show the code in the function and where you are calling/using that function

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.