I think you're still missing the point. Shawn (and I) are talking about the actual function itself. You have the parameters in the function itself incorrectly named.

Not here
Code:

$ConnDSN = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=test;USER=test;PASSWORD='';OPTION=3;"



But here
Code:

Function DBConnOpen($objConn, optional $ConnTimeout, optional $CmdTimeout)



I'm not sure how else to explain it. Post your entire script again so that we're all on the same page.