![]() |
|
Questions about albums table - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Questions about albums table (/thread-13740.html) |
Questions about albums table - Equinoxe58 - 04-09-2022 Hello, Questions about albums table - sbillard - 04-09-2022 the different representations in the album title are normal. Generally this field stores multi-lingual content. (That is what the fr_FR tag is--French.) You really should not be directly accessing the database entries. Especially if you are not completely familiar with the Zenphoto implementation. There are object methods and functions that deal properly with the content. For instance As to the show field. You need to indicate to mySQL that you are referencing a field. Again, familiarity with the tools is needed if you want to access the root database entries. For "show" (and any other field) put the field name in peck marks (`). Questions about albums table - Equinoxe58 - 04-09-2022 Can you help me a little please? $sql = "SELECT id, folder, title, I don't know how to use the function that removes extra characters in the title field. Questions about albums table - acrylian - 05-09-2022 As already mentioned you should not use direct queries if avoidable, use the object model instead. Please see here: If your really, really need a direct query - which in this case you don't - use But before you do these kind of stuff, I strongely suggest to read the theming tutorial for the absolute theme basics first if you haven't: https://www.zenphoto.org/news/theming-tutorial/ Questions about albums table - Equinoxe58 - 08-09-2022 Don't worry, don't want to "break" my zenphoto. I only need the info I quoted above in another program that has nothing to do with zenphoto. And my little program uses a direct mysql query. In this case, a simple select. Questions about albums table - acrylian - 08-09-2022 Well, still you need to follow what Zenphoto does. The string is serialized and can be unserialized via native PHP functions. However only the Zenphoto function covers the correct handling regarding multilingual. And the string is generally always that way even if you don't use multilingual: https://www.zenphoto.org/news/problems-with-languages/ (way down) |