well, I'm with Ammar on the dependancy problem, but not on the "I see no point in making configuration an object", well i've been there, at some point, you might ned our configuation from an exterrnal sorce, so putting it in anobject is a goodpractise that would encapsulates whee is it comming from.
i'm not familiar with HTML_QuickForm, bu it seems tht o avoid multiple connetins an the same page you should apply the singelton pattern to your db class (http://www.patternsforphp.com/wiki/Singleton). well, for me it's a crime to make more than one connection to the same db in th same run (page). On 1/30/07, Al-Faisal El-Dajani <[EMAIL PROTECTED]> wrote: > > OK, the problem is somewhat solved. I modified my db connectivity class > and added the following query right after the connection is established: > set names utf8 > > Now all data appears in arabic on teh site, database, and phpmyadmin. But > this has the slight disadvantage of needing to run that query after each > connection. > I'm using HTML_QuickForm, most of my select elements already use loadQuery > to populate themselves, and since i'm using load query creates a new > connection, all the data appears in gibberish. But at least, i can modify > those and populate teh list manually. so i guess problem solved. > > any comments? > > On 1/30/07, Al-Faisal El-Dajani <[EMAIL PROTECTED]> wrote: > > > > Thanx for the input Ammar, but this is some hastily copied paste from my > > full project. $CFG serves other purposes. This is something quick to test > > the encoding problem. But again, thanx for the input :). > > > > -- > > Al-Faisal El-Dajani > > Phone: +962-7-77 799 781 > > P.O Box: 140056 > > 11814 Amman, Jordan > > > > > > -- > Al-Faisal El-Dajani > Phone: +962-7-77 799 781 > P.O Box: 140056 > 11814 Amman, Jordan > > > -- Ala'a A. Ibrahim http://alaa-ibrahim.com/guru --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Jordan PHP Users Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/JoPHP http://Jolug.org/ -~----------~----~----~----~------~----~------~--~---
