|
Posted by Charles Polisher on 07/05/07 23:18
google@thefifthimperium.com wrote:
<snip>
> The script code is pretty simple:
>
> 44 $conn = odbc_connect($dbhost, $dbuser, $dbpw);
> 45 $result = odbc_tables($conn);
> 46 odbc_result_all( $result );
>
> //This returns No Results, but no error, either
> // commented out lines here
>
> 51 $sql = "SELECT * FROM $dbname";
> 52 $result2 = odbc_exec( $conn, $sql );
>
> // commented out lines here
>
> 57 while (odbc_fetch_row($result2)) {
> echo odbc_result_all( $result2 );
> }
should the SQL read "SELECT * FROM $dbname.$tablename" ?
Navigation:
[Reply to this message]
|