| | |
re: PEAR is the installation incomplete
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2006
Posts: 11
Reputation:
Solved Threads: 0
Hi all,
I'm having just a slight problem in that I have recently installed the PEAR unit, however when ever i try to use either;
fetchRow()
getRow()
I get the following error:
Fatal error: Call to undefined function fetchRow()
or
Fatal error: Call to undefined function getRow()
I assuming this mean that I have managed to balls up the install of PEAR. I would just like some confirmation, i am using the following tutorial script to test the PEAR unit (only showing the relevant part of the script).
Cheers in advance
I'm having just a slight problem in that I have recently installed the PEAR unit, however when ever i try to use either;
fetchRow()
getRow()
I get the following error:
Fatal error: Call to undefined function fetchRow()
or
Fatal error: Call to undefined function getRow()
I assuming this mean that I have managed to balls up the install of PEAR. I would just like some confirmation, i am using the following tutorial script to test the PEAR unit (only showing the relevant part of the script).
PHP Syntax (Toggle Plain Text)
<?php require_once( "DB.php" ); $dsn = 'mysql://root:password@localhost/time'; $db =& DB::Connect( $dsn, array() ); if (PEAR::isError($db)) { die($db->getMessage()); } $res = $db->query( "SELECT id FROM users WHERE name=? AND password=MD5(?)", array( $_POST['user'], $_POST['password'] ) ); $row = array( null ); if ( $res != null ) $res->fetchInto( $row ); if ( $row[0] != null ) { session_start(); $_SESSION['user'] = $row[0]; header( "Location: welcome.php" ); } else { header( "Location: index.php?bad=1" ); } ?>
Cheers in advance
![]() |
Similar Threads
- Need guidance as to where to post question (Windows Software)
- OEM PC -Windows XP Home (oem) does not complete installation-set up loops (Troubleshooting Dead Machines)
- windows service pack 2 installation - unique problem (Windows NT / 2000 / XP)
- Windows Me Installation problem/broken floppy (Windows 95 / 98 / Me)
- Over-writing WinXP Pro with new installation? (Windows NT / 2000 / XP)
- Network Card installation Problem (PCI and Add-In Cards)
Other Threads in the PHP Forum
- Previous Thread: like php but have windows xp home
- Next Thread: email
| Thread Tools | Search this Thread |
advanced apache api array beginner binary broken cakephp checkbox class cms code cookies cron curl database date datepart display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google head href htaccess html if...loop image include includingmysecondfileinthechain insert ip javascript job joomla jquery key library limit link login mail menu mlm multiple mysql oop password paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search server sessions smarty sms soap sorting source space sql startup stored syntax system table traffic tutorial update upload url validator variable video web xml youtube zend





