Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't find any functions!!

Status
Not open for further replies.

Wantless

Programmer
Joined
Jun 5, 2004
Messages
3
Location
US
ok all im trying to do is get the last entry in a news table and display it but when i go to see what happens it says:
Fatal error: Call to undefined function: odbc_connect() in /homepages/34/d94591952/htdocs/wantless/index.php on line 95

but i thought odbc_connect was an imbedded function or whatever so i tried a simpler function like:

Code:
chr(4);
but that failed too
im pretty sure its not the server because phpbb worked just fine.
anybody got any ideas?
 
hmm wow believe it or not chr worked that time
but heres the code i WANT to run:
Code:
$conn=odbc_connect('hidden','hidden','hidden'); 
if (!$conn)
{
exit("Connection Failed: " . $conn); 
} $sql="SELECT bottom 1 * FROM [news]"; $rs=odbc_exec($conn,$sql);
if (!$rs)
{ exit("Error in SQL");}
odbc_fetch_row($rs);
$idate=odbc_result($rs,"date");
echo "<p style=" . chr(34) . "color:737173" . chr(34) . ">$date";
odbc_close($conn);

Earth is full. Go home...
http://wantless.dragsims.com/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top