#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    14
    Rep Power
    0

    problems using functions w/ parameters


    this results in an error.

    Code:
    public function query("host","sql")
    cst="driver={mysql odbc 3.51 driver};server="&host&";uid=root;pwd=;database=test"
    some more code..
    and when calling the function...

    Code:
    some code
    db.query("localhost","select * from startsida order by nr")
    some more code..
    what's wrong (error tells "identifier expected") ?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    138
    Rep Power
    12
    what is:

    public function query("host","sql")

    maybe you should try:

    public function query(host,sql)

    or even

    public function query(byVal host, byVal sql)
    --

    ngibsonau

IMN logo majestic logo threadwatch logo seochat tools logo