Kwebble : Blog

Label: mysql

  • MySQL STRICT_TRANS_TABLES mode and truncated text values

    Gepubliceerd op 20 april 2008 in Programming.

    I just upgraded Apache, PHP and MySQL to their current versions on my development system. After that a unit test of one of my PHP classes failed on inserting a row in a MySQL table. The test inserts text with a greater length than the maximum column length of a VARCHAR column.

    This test fails because the new server runs with STRICT_TRANS_TABLES mode. It means that a inserted value must be equal to the stored value or the statement fails. Without the mode setting the inserted value is truncated to the column’s maximum length.

    • mysql
    • php
    • test
    • tip
  • Building a barebones CMS

    Gepubliceerd op 14 september 2005 in Programming.

    The article Building a Barebones Content Management System: An Introduction is the start of a tutorial that explains how to put a barebones CMS together with PHP and MySQL using three available APIs:

    • yaapi: a programming interface that makes displaying articles on your webpage easy.
    • patTemplate: a versatile templating engine that supports a wide range of features.
    • patUser: a user management class that helps you with authentication, group and permission management, statistics and more.
    • cms
    • mysql
    • php
  • Rubrieken

    • Artikelen
    • Foto's
    • Links
    • Media
    • Overheid
    • Programming
  • Recente Berichten

    • Stanford Web Applications course lectures
    • The importance of knowing Unicode
    • “If you are not paying for it, you’re not the customer; you’re the product being sold.”
    • Inzage in je gegevens bij Facebook
    • Tuning Oracle UCM 11 & Site Studio performance
  • Abonneren

    • Atom feed Artikelen
    • Atom feed Reacties
  • Archief

© Rob Schlüter - Contact