PEAR Packages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPEAR Packages

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
  #1  
Old December 14th, 2007, 06:39 AM
joshLangley joshLangley is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 5 joshLangley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 21 sec
Reputation Power: 0
MDB2 - MDB2_Driver_mysqli::quoteSmart()

using MDB2_Driver_mysqli - v1.4.1. (stable)

I'm trying to use the quoteSmart() function since it says in the documentation that quote() is deprecated.
However upon trying I get the following error:
Quote:
Fatal error: Call to undefined function: MDB2_Driver_mysqli::quoteSmart(). in C:\WebServ\php\PEAR\MDB2.php on line 1936

Is their something I'm missing, or the stable version does not include the defined function yet? I bet it's something I'm missing, it always is. >.<

Reply With Quote
  #2  
Old December 14th, 2007, 08:13 AM
wiesemann wiesemann is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 146 wiesemann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 39 m 31 sec
Reputation Power: 2
You're mixing two packages here:
- in DB quote() is deprecated (and quoteSmart() should be used)
- in MDB2 quote() isn't deprecated (and quoteSmart() doesn't exist)

And before you ask: Yes, it's better to use MDB2 than DB.

Reply With Quote
  #3  
Old December 14th, 2007, 06:20 PM
joshLangley joshLangley is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 5 joshLangley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 21 sec
Reputation Power: 0
thanks, must've got confused from the docs.

I've been using MDB2 for over a year now, so I know the advantages it has over the older DB, which I have never used.

Reply With Quote
  #4  
Old December 20th, 2007, 08:26 AM
mrsocks mrsocks is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 mrsocks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 28 sec
Reputation Power: 0
I have had to switch from MDB2 to DB (I needed the ODBC driver)
and had a questions about when to use quoteSmart

Are there any methods that automatically escape any input to be used in sql statements?

Do I need to use quoteSmart on methods that use placeholders like getOne, or when passing arrays of choices like to getAll, or simply using query instead of prepare/execute ?

I saw in the MDB2 docs that certain methods automatically escape input, but cant find anything in DB.

Thanks.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPEAR Packages > MDB2 - MDB2_Driver_mysqli::quoteSmart()


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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