MySQL
  Home arrow MySQL arrow Page 4 - How To Create A PHP Front-End To Your MySQ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MYSQL

How To Create A PHP Front-End To Your MySQL Database Using DaDaBIK
By: Eugenio Tacchini
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 28
    2002-09-06

    Table of Contents:
  • How To Create A PHP Front-End To Your MySQL Database Using DaDaBIK
  • Database Table Creation
  • Database Table Creation (contd.)
  • Customizing DaDaBIK
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    How To Create A PHP Front-End To Your MySQL Database Using DaDaBIK - Customizing DaDaBIK


    (Page 4 of 5 )

    DaDaBIK provides us with a lot of possibilities to customize the interface. One of the most useful is the ability to choose from different HTML input types for each field in the form. In fact, you aren’t limited to only single-line text boxes when editing field values –- you can choose to use textarea, password, select and checkbox fields. All you have to do is select the right field type from the internal table manager.

    Let me explain with an example: imagine that we want to use a <textarea> field for the field notes_cust and a pull-down menu for the field job_cust; in particular the menu must contain 5 pre-set options: Teacher, Programmer, Musician, Student and Entrepreneur. Here's how to set it in the Internal table manager:

    For notes_cust we have to change the field type from text to textarea:

    Changing the field type for the notes_cust field

    For job_cust we have to choice select_single as the field type, and fill in the box "Option to include" with all of possible options separated by the ~ sign, like this:

    ~~Teacher~Programmer~Musician~Student~Entrepreneur~

    Note that I've put two ~ at the beginning of the string. This allows to have also a blank option.

    Setting the options to display in the pull-down menu

    Here's how our search interface looks after the changes mentioned above have been made:

    Our newly updated search form

    Advanced features
    A lot of advanced features are also available and we'll see them in a future article about DaDaBIK, but let me just introduce the most important of them for now:

    It is possible to:
    • use multiple tables
    • define which fields are required in the insert operation
    • define the possible content of a field (e.g. a web field must be filled with a valid URL)
    • decide if a field must be checked for possible duplications during inserts
    • get the possible values of a select field from a different table, also using a custom SQL statement (foreign key feature)
    • generate a unique ID for each insert
    • define the operations allowed for each table
    • change the position of the fields in the form

    More MySQL Articles
    More By Eugenio Tacchini


     

    MYSQL ARTICLES

    - MySQL and BLOBs
    - Two Lessons in ASP and MySQL
    - Lord Of The Strings Part 2
    - Lord Of The Strings Part 1
    - Importing Data into MySQL with Navicat
    - Building a Sustainable Web Site
    - Creating An Online Photo Album with PHP and ...
    - Creating An Online Photo Album with PHP and ...
    - PhpED 3.2 – More Features Than You Can Poke ...
    - Creating An Online Photo Album with PHP and ...
    - Creating An Online Photo Album with PHP and ...
    - Security and Sessions in PHP
    - Setup Your Personal Reminder System Using PHP
    - Create a IP-Country Database Using PERL and ...
    - Developing a Dynamic Document Search in PHP ...






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT