Skip to main content

Connect to Database

ClassiBase classifieds script Forums General help Connect to Database

Tagged: , ,

This topic contains 2 replies, has 1 voice, and was last updated by  info 5 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #1242 Reply


    I’m trying to write a script that would use the Cb database.
    However, I need to set it to read Cb config file so if I change config file parameters connection will always be updated.
    I thank you in advance for any help on this subject.

    #1243 Reply


    Ok, cb_config table has name and value fields. Name is name of settings, val is string or serialized array/object for given setting.

    If you are changing simple text value then it is easy.

    Serialized array is used when setting has different values for each locale. Then multidimensional array used where keys are language id.

    Serialized object is used for storing theme settings.

    In any case if you change database settings from external program you may have to clear cache from admin panel of your website because config settings are stored in cache for 1 hour. Cache is automatically cleared if you change config from admin panel.

    #1248 Reply


    Thank you but this is much more than I can understand…
    I will go slowly, step by step :)

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Connect to Database
Your information:

  • Classifieds Business Newsletter

    Get discounts and tips about growing your classifieds website.