|
12-20-2005, 07:21 AM | #1 |
Green Mole
Join Date: Dec 2005
Posts: 2
|
Fatal error: Call to undefined function: odbc_connect()
I'm having a tough time resolving this error when connecting to an SQL database (Fatal error: Call to undefined function: odbc_connect()). Does anyone have any suggestions?
Here's my code: <? $db = odbc_connect("PowerPad","","") or die ( "Could not make connection to database"); $sql = "SELECT * from PPAD.Team ORDER BY Name"; $result = odbc_exec($db, $sql); $a=0; while ($row = odbc_fetch_array($result)) { if ($a%3==0) { echo "<TR bgColor=#ffffff>"; } echo "<TD vAlign=top height=21>"; echo "<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">"; echo "$row[0]"; echo "</font><br>"; echo "<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">"; echo "$row[1]"; echo "</font><br>"; echo "<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">"; echo "<a href=mailto:".$row[5].">".$row[5]."</a>"; echo "</font><br>"; echo "<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">"; echo "$row[3]"; echo "</font><br>"; $a++; } odbc_close($db); ?> |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fatal error: Call to undefined function: mb_eregi() | drdrew42 | Script Installation | 1 | 12-04-2007 02:08 AM |
Call to undefined function: mb_eregi() | PHPfranky | Troubleshooting | 0 | 12-03-2005 06:40 AM |
install error!undefined function: mb_eregi() | wedmaster | Script Installation | 4 | 04-21-2005 07:12 AM |
Call to undefined function: is_executable() | switch | Troubleshooting | 3 | 03-13-2004 08:13 AM |
Fatal error: Call to undefined function: is_executable() | lionel.cleran | Script Installation | 1 | 03-09-2004 09:30 AM |