Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Simple Select from another PHP project.  (Read 2412 times)

0 Members and 1 Guest are viewing this topic.

mitring

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Simple Select from another PHP project.
« on: March 06, 2009, 09:05:56 am »

I have a problem with a simple SQL query.
I have a file: test.php with db_connect to  Coppermine database.
Simple select to cpg_comments table and I have the wrong encoding.

How to write correnct code to see correct encoding ?

Code: [Select]
SELECT * FROM cpg_commentsand I have:
Code: [Select]
óóółłłłśśś�
Structure table cpg_comments:
Code: [Select]
CREATE TABLE `jos_chrono_comments` (
  `id` INTEGER(11) NOT NULL AUTO_INCREMENT,
  `component` VARCHAR(255) COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `pageid` VARCHAR(255) COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `parentid` INTEGER(11) NOT NULL,
  `userid` INTEGER(11) NOT NULL,
  `name` VARCHAR(255) COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `email` VARCHAR(255) COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `url` VARCHAR(255) COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `text` LONGTEXT NOT NULL,
  `datetime` DATETIME NOT NULL,
  `rating` INTEGER(11) NOT NULL,
  `verify` TINYINT(1) NOT NULL,
  `uniqueid` VARCHAR(255) COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `published` TINYINT(1) NOT NULL,
  PRIMARY KEY (`id`)
)ENGINE=MyISAM
AUTO_INCREMENT=303 CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Simple Select from another PHP project.
« Reply #1 on: March 06, 2009, 09:28:48 am »

Not related to bridging, moving.
There's too little input in your posting - post more details (i.e. code used). Posting a link to your gallery might help as well. Posting what encoding you chose in coppermine's config could be another thing that potential supporters would like to know. If you want details, post details.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.