--
"Casey Allen Shobe" <[EMAIL PROTECTED]> ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Whoops, had an extra line in there. Should have been as follows:
function db_query ($db_type, $db_conn, $db_query) {
// Uncomment to debug
//echo $db_query.'<br>';
if ($db_type == 'odbc') {
$result = odbc_exec($db_conn, $db_query);
while(odbc_fetch_into($result, &$row)) {
$data[0][]=$row;
}
$data[1] = odbc_num_rows ($result);
odbc_free_result ($result);
} else if ($db_type == 'sybase') {
// What do I put here?
}
return $data;
}
Thanks,
--
Casey Allen Shobe / Network Security Analyst & PHP Developer
SecureWorks, Inc. / 404.327.6339 x169 / Fax: 404.728.0144
[EMAIL PROTECTED] / http://www.secureworks.net
Content is my own and does not necessarily represent my company.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php