Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8287509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:04:10+00:00 2026-06-08T12:04:10+00:00

I am looking for a javascript plugin that will let users create MySQL tables

  • 0

I am looking for a javascript plugin that will let users create MySQL tables using a very basic HTML interface. Ideally a CREATE statement would result from the HTML table. Does anyone know of such a script?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:04:12+00:00Added an answer on June 8, 2026 at 12:04 pm

    to my knowledge there is not a jquery plugin that will allow you to ‘create’ database tables, regardless you would still have to use some server side code to handle the actual SQL etc. it is not too difficult to create something yourself, i knocked together this which i think is the kinda thing your looking for. note: this is not a full implementation 😛 just an idea, basically create the table using html, parse it to json, then send it to the server to deal with it.

    initial html ‘template’:

    <table id="table_designer">
        <tr class="table_name">
            <td><input type="text" placeholder="table name" /></td>
        </tr>
        <tr class="field_name">
            <td>name</td>
            <td><input type="text" /></td>
        </tr>
        <tr class="type">
            <td>type</td>
            <td><select>
                <option>int</option>
                <option>varchar</option>
                <option>date</option>
            </select></td>
        </tr>
        <tr class="primary_key">
            <td>primary key</td>
            <td><input type="checkbox" /></td>
        </tr>
        <tr class="relationship">
            <td>related type</td>
            <td><select>
                <option>none</option>
                <option>one to many</option>
                <option>many to one</option>
                <option>many to many</option>
            </select></td>
        </tr>
        <tr class="related_table">
            <td>related table</td>
            <td><input type="text" /></td>
        </tr>
        <tr class="related_field">
            <td>related field</td>
            <td><input type="text" /></td>
        </tr>
        <tr class="controls">
            <td><button id="save">save</button></td>
            <td>
                <button id="delete">delete</button>
                <button id="add">add</button>
            </td>
        </tr>
    </table>
    

    some jquery to handle the ‘actions’

    /* parses table as json and sends to server */
    $('#save').click(function() {
        var json= {};
    
        $('#table_designer tr').each(function(){
            var $t = $(this),
                prop = $t.attr('class');
    
            json[prop] = [];
    
            $t.children('td').each(function() {
                json[prop].push($(this).children().first().val());
            });
        });
    
        alert(JSON.stringify(json, null, " "));
    
        /* send the data to the server
        $.post('www.mysite.com', json, function(d, t, j) 
               { alert('success'); });
        */
    });
    
    /* deletes parent column */
    $('#delete').click(function() {
        var $t = $(this),
            pos = $t.parents('td').index() + 1;
    
        $('#table_designer tr').each(function(){
            $(this).children('td:nth-child(' + pos +')').remove();
        });
    });
    
    /* adds a new field */
    $('#add').click(function() {
        var $t = $(this),
            pos = $t.parents('td').index() + 1;
    
        $('#table_designer tr').each(function(){
            var clone = $(this).children('td').last().clone(true);
            clone.children('input').val('');
            $(this).children('td:nth-child(' + pos +')').after(clone);
        });
    });
    

    ​

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a (ideally jQuery plugin) Javascript library that will let me provide
I am looking to create a Web Chat system using PHP, MySQL and JavaScript.
I'm looking for a jquery plugin or javascript that will columnize a list. I've
I'm looking for a javascript that allow me to: 1- Create a link: [a
I need to apply a jQuery plugin to an HTML element that will be
I'm looking for a barebones javascript example that demonstrates how the javascript plugin architecture
I'm looking for some sort of jquery plugin (or even plain javascript) that can
Ideally I'm looking for a Javascript resource loader that will: (1) Allow me to
I'm looking for a jQuery plugin or anything that will allow me to easily
I'm working on a program that uses HTML/CSS/Javascript/JQuery for its user interface. One of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.