Re: MS SQL problem

From: Date: Mon, 29 Apr 2002 21:27:01 +0000
Subject: Re: MS SQL problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95275@lists.php.net to get a copy of this message
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

« previous php.general (#95275) next »