Loading
What is the error in php?
Mar 03, 2008 By ymengel
In this php program:
<?php
// connect to DSN MSSQL with a user and password
$connect = odbc_connect("DSNNAME", "miki", "84139") or die ("couldn't connect");
ini_set('odbc.defaultrl','65536');
odbc_exec($connect, "use SwitchCenterDB");
$result = odbc_exec($connect, 'show tables');
while(odbc_fetch_row($result)){
...
}
odbc_free_result($result);
odbc_close($connect);
?>[Mon Mar 03 11:49:59 2008] [error] [client 132.64.4.16] PHP Warning: odbc_exec() [function.odbc-exec]: SQL error: [unixODBC][FreeTDS][SQL Server]Could not find stored procedure 'show'., SQL state 37000 in SQLExecDirect in /srv/www/htdocs/hu/Proj1/ttc.php on line ...
there is an error:
Trending Topics
| You Need A Budget | Feb 10, 2012 |
| The Linux powered LAN Gaming House | Feb 08, 2012 |
| Creating a vDSO: the Colonel's Other Chicken | Feb 06, 2012 |
| Your CMS Is Not Your Web Site | Feb 01, 2012 |
| Casper, the Friendly (and Persistent) Ghost | Jan 31, 2012 |
| Razor-qt 0.4 - Qt based Desktop Environment | Jan 30, 2012 |
- Fun with ethtool
- Parallel Programming with NVIDIA CUDA
- Readers' Choice Awards 2011
- 100% disappointed with the decision to go all digital.
- Linux-Based X Terminals with XDMCP
- Validate an E-Mail Address with PHP, the Right Way
- You Need A Budget
- The Linux powered LAN Gaming House
- Why Python?
- Python for Android
- Employment Posters
2 hours 25 min ago - Sure the best distro is
3 hours 45 min ago - BeOS was the best
6 hours 29 min ago - I use Wireshark on a daily
10 hours 59 min ago - buena información
16 hours 6 min ago - One important "bucket" that I didn't note (désolé si qqun deja d
17 hours 7 min ago - Gnome3 is such a POS. No one
1 day 2 hours ago - Gnome 3 is the biggest POS
1 day 2 hours ago - I didn't knew this thing by
1 day 8 hours ago - Author's reply
1 day 12 hours ago





The error
$result = odbc_exec($connect, 'show tables');
This is where the error is. I don't think 'show tables' is a valid parameter here.