Jump to content


This topic is now archived and is closed to further replies.


Adding/Editing/Deleting from MySQL

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 '',
) 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!

Share this post

Link to post
Share on other sites
You might find phpMyEdit is ideal for generating the editor you need in a few seconds.


Share this post

Link to post
Share on other sites


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.