SunQuest
           PHP Applications
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Applications

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old January 2nd, 2007, 01:29 AM
swiftguy swiftguy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: mumbai India
Posts: 4 swiftguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Pear DB DataObject Fatal Error

Hi Experts,

Im new to Smarty, trying to implement http://www.onlamp.com/pub/a/php/2004/12/09/three_tier.html

Im getting the following error when i execute the save.php

Fatal error: Call to undefined method DB_DataObject_Error::insert() in /var/www/html/smartyapps/onlamp/dataobjects/save.php on line 11


save.php
---------
php Code:
Original - php Code
  1.  
  2.  
  3. <?
  4.  
  5. //require("include.php");
  6. require_once 'createDBObjects/includes/pear/DB/DataObject.php';
  7.   //require_once('DB/DataObject.php');
  8.    //require('configDB.php');
  9.    $user = DB_DataObject::factory('user');
  10.    $user->first_Name = $x;
  11.    $user->last_Name  = $y;
  12.    $user->email      = $z;
  13.    $user_Id = $user->insert();
  14.    $user->update();
  15.     echo "<script>location.href='index.php'</script>";
  16.  
  17. ?>
  18.  


I have checked out DataObject.php is there in that location.

Plz help me out.

Thx in advance.

Regards
Swigtguy.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Applications > Pear DB DataObject Fatal Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway