Jump to content

Adding/Editing/Deleting from MySQL


Nate_

Recommended Posts

So I'm trying to incorporate the google maps into my web site, and I want to be able to add markers to the map through the MySQL Database.  I've figured out how to connect the map to the database and bring up the markers.  It reads lattitude and longitude coordinates to place the marker.

Now, I need to create a PHP script that will easily add, edit, and delete tables to the MySQL database.

I've created the main table in the MySQL database, like so:
[code]CREATE TABLE wholocations (
  id int(11) NOT NULL auto_increment,
  lat decimal(10,6) NOT NULL default '0.000000',
  lon decimal(10,6) NOT NULL default '0.000000',
  description varchar(255) NOT NULL default '',
  PRIMARY KEY  (id)
) TYPE=MyISAM;[/code]

Now for adding, editing, deleting that stuff......i'm a little lost.

What i'd like to do is create one page.  When the page loads, it shows a list of every entry i've put in.  Next to each entry, a check box or radio button for "edit entry" and "delete entry"

At the bottom of the page, a place to put in new information to add to the table. 

Hope this makes sence, and I would appreciate the help!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.