Re: Confusing Problem

From: Date: Sun, 20 Jan 2002 22:56:09 +0000
Subject: Re: Confusing Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81288@lists.php.net to get a copy of this message
Tj, > I am really baffled by this problem. I have tried so many things to get > this working but to no avail. Here is the > actual code: > > function verify_user($username, $password){ > $conn = mysql_connect($db_host, $db_user, $db_pass) or ... > Anyways the problem is I cannot get it to even get to the database. It > works when I try to connect in the actual code before I call this function. ... > But when I do it that way it won't let me run a query right. I am so > baffled. Any input would be appreciated. Thanks. Remember the idea of the "scope" of a variable? (if not, please RTFM) Where do the values of $db_host, $db_user, etc come from? They are not in the argument list for verify_user(). Regards, =dn

« previous php.general (#81288) next »