If you are using a class that is well-encapsulated
For example
function Fetch_array ($query, $result _type = Mysql_assoc) {
Return mysql_fetch_array ($query, $result _type);
}
[/code]
will report this error
This is supposed to be, you pass the $query is a Boolean value, and the parameters inside the Mysql_fetch_array need is the resource type, this is, your program will determine that you pass the parameter error,
We can
Copy CodeThe code is as follows:
function Fetch_array ($query, $result _type = Mysql_assoc) {
Return @mysql_fetch_array ($query, $result _type);
}
Use @ in front to suppress the error prompt, or
Try the interpretation statement to execute the statement,
Copy CodeThe code is as follows:
if (this parameter)
{
Perform
}
http://www.bkjia.com/PHPjc/323052.html www.bkjia.com true http://www.bkjia.com/PHPjc/323052.html techarticle If you are using a packaged class such as function Fetch_array ($query, $result _type = Mysql_assoc) {return mysql_fetch_array ($query, $result _ Type); } [/code] will report the error this ...