| | |
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 |
apache api array beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external fcc file files folder form forms forum freelancing function functions google header headmethod howtowriteathesis href htaccess html iframe image include insert ip javascript joomla limit link login mail malfunction menu method mlm mod_rewrite multiple mysql neutrality oop pageing pagerank paypal pdf php phpmysql play problem query question radio random recursion remote root script search select server sessions sms soap source space sql support! syntax system table template tutorial update upload url validator variable video web youtube





