mysql php form generator mysql php form generator mysql php form generator
mysql php form generator

Post Installation Notes

If your version of PHP was *not* compiled PHP with "--with-zlib" then comment out references to ob_start('ob_gzhandler');

ob_start('ob_gzhandler') compresses data sent to the web browser and significantly speeds up the delivery of your forms. Users whose php.ini file sets zlib compression ON will need to change occurrences of ob_start('ob_gzhandler') to:

if(!@ini_get('zlib.output_compression')){
   ob_start('ob_gzhandler');
}

You may want to edit all the headers and provide a complete URL to the stylesheets and Javascript (so that if you use a copy of a given page as a template for a new page, the links to stylesheets and Javascript won't break if the new page is moved to a different directory).

The provided phpMyEdit.class.php is required by the generated forms and is a slightly modified version of the phpMyEdit.class.php file from the November 2006 CVS.

If your forms are publicly available, use META INDEX, NOFOLLOW tags in the HTML header in order to prevent search engine robots from following links. If omitted, certain robots will follow the column header links (sort records repeatedly) possibly generating TENS OF THOUSANDS of unwanted hits on the same page.

Vary the name of your Primary Key columns. Don't name them 'id' in every table or you may encounter difficulties with lookups to other tables. Use only lower case letters and underscore characters in the names of columns and tables to ensure portability across different system configurations.

HTML documentation for phpMyEdit is included. Documentation is also available in SGML and PDF formats from platon.sk.

View the Demo (new window).

Using Multiple Data Sources

If using multiple databases, "db." or "db_" may be a good
choice for the prefix applied to the name of your forms.
At the top of your form you might add a new variable:

$opts['data_source'] = 1;

In the dbconn.php file, a switch() statement
could be added to resolve the connection:

switch($opts['data_source'])
{
   Case 2:
      $opts['hn'] = '127.0.0.1'; // MySQL hostname or IP address
      $opts['db'] = 'db_name_2'; // MySQL database
      $opts['un'] = 'db_name_2_usr'; // MySQL user
      $opts['pw'] = 'db_name_2_pwd'; // MySQL password      
      break;
   Case 1:
   default:
      $opts['hn'] = 'localhost'; // MySQL hostname or IP address
      $opts['db'] = 'db_name_1'; // MySQL database
      $opts['un'] = 'db_name_1_usr'; // MySQL user
      $opts['pw'] = 'db_name_1_pwd'; // MySQL password      
      break;
};



PHP Form Generator Home | PHP Form Generator Demo

mysql php form generator
mysql php form generator mysql php form generator mysql php form generator
Copyright © 2010 - All rights reserved - Tel (815) 301-5579 - Fax (815) 301-5579 - doug@hockinson.com

phpvs.com - hockinson.com - phpmyedit.org - platon.sk - denvermetro.org - cymaxmedia.com - cymax2.com

Hostgator.com web hosting