Hey!! I keep getting a supplied argument error when I try and pull some info out of my access db.
Im using ODBC to connect to the db and the connection is successful. But it's giving me a problem when I try and pull out some info. The fields Iv'e selected the data from exist and the condition is also valid..
$result = odbc_exec($conn, "SELECT Username FROM tblusers WHERE ID = 1");
$r = odbc_fetch_row($result);
$user = odbc_result($r,1);
echo $user;
Can anyone see the cause of this problem? I feel like the script is just pissing me off for fun 🙁
And another thing..
I read on php.net that odbc_fetch_array() was a valid function from php version 4.2.0 up.. im running version 4.3.0 and it said im calling an undifined function. Anyone got any ideas?
Regards, Stezz.