On 29 Apr 2002 at 14:14, Joshua E Minnie wrote:
> if(user_exists($dbname,"users","user",$user) > 0) {
echo the variables to make sure they are what they should be.
> function user_exists($dbname, $table, $field, $value) {
echo the variables to make sure they are what they should be.
> $query = "SELECT $field FROM $table WHERE $field = '$value'";
echo your select to make sure it looks like it should.
> $rows = mssql_num_rows($result);
echo the result to make sure it looks like it should.
Doing the above will probably find your problem for you.
CYA, Dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php