PhpDig.net

Go Back   PhpDig.net > General Forums > Coding & Tutorials

Reply
 
Thread Tools
Old 12-20-2005, 08:21 AM   #1
NPeart1
Green Mole
 
Join Date: Dec 2005
Posts: 2
Angry 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);
?>
NPeart1 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error: Call to undefined function: mb_eregi() drdrew42 Script Installation 1 12-04-2007 03:08 AM
Call to undefined function: mb_eregi() PHPfranky Troubleshooting 0 12-03-2005 07:40 AM
install error!undefined function: mb_eregi() wedmaster Script Installation 4 04-21-2005 08:12 AM
Call to undefined function: is_executable() switch Troubleshooting 3 03-13-2004 09:13 AM
Fatal error: Call to undefined function: is_executable() lionel.cleran Script Installation 1 03-09-2004 10:30 AM


All times are GMT -8. The time now is 04:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.