custom forms

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
silverbux
Forum Newbie
Posts: 9
Joined: Mon Aug 14, 2006 8:50 pm

custom forms

Post by silverbux »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


hello im trying to do a customizable form, example: i can add fields in a registration form, from admin page. ive done 3 tables but i dont know if im doing it right. please help. thank you in advance   



it is here where custom values being stored

[syntax="sql"]`ticketing_custom_values` (
  `id` int(11) NOT NULL auto_increment,
  `field_id` int(11) default NULL,
  `value` varchar(150) default NULL,
  `ticket_id` int(11) default NULL,
this is the custom forms

Code: Select all

`ticketing_custom_fields` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(50) default NULL,
  `type` varchar(50) default NULL,
  `ordering` int(5) default NULL,
  `default_values` varchar(100) default NULL,
  `label` varchar(100) default NULL,
this is where the default forms are being stored

Code: Select all

ticketing` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(50) default NULL,
  `email` varchar(50) default NULL,
  `subject` varchar(50) default NULL,
  `message` text,
  `department` int(11) default NULL,
  `date_posted` int(11) default NULL,

feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
silverbux
Forum Newbie
Posts: 9
Joined: Mon Aug 14, 2006 8:50 pm

Post by silverbux »

ops sorry for that :oops:
Post Reply