student
02-05-2007, 03:09 AM
hello,
i have a problem and hope the experts here may help.
i have a directory and it provides the titles and descriptions of the sites included in it. all the data is stored in a mysql database and i use php script to work my directory.
i am able to edit the titles and desciptions through phpmyadmin.
and i also want my visitors to be able to edit these titles and descriptions.
but the problem is i want to approve the editing before it actually updates the data in mysql.
when visitors edit the data, i think there are two possibilities
1) modifications should be emailed to me and after i approve them, it should update the mysql database. i know how to send these modifications to my email box. but dont know how to update mysql database from that email box.
2) modifications should be sent to my admin panel where i may approve them. but the problem is, i dont have an admin panel and dont know how to set up an admin panel.
for example this is my table:
$query = "CREATE TABLE sites (
id int(11) NOT NULL auto_increment,
title varchar(70) default NULL,
description text
)";
please inform me how to make this possible.
if this is a big process, please point me some tutorials.
thank you very much for any reply.
i have a problem and hope the experts here may help.
i have a directory and it provides the titles and descriptions of the sites included in it. all the data is stored in a mysql database and i use php script to work my directory.
i am able to edit the titles and desciptions through phpmyadmin.
and i also want my visitors to be able to edit these titles and descriptions.
but the problem is i want to approve the editing before it actually updates the data in mysql.
when visitors edit the data, i think there are two possibilities
1) modifications should be emailed to me and after i approve them, it should update the mysql database. i know how to send these modifications to my email box. but dont know how to update mysql database from that email box.
2) modifications should be sent to my admin panel where i may approve them. but the problem is, i dont have an admin panel and dont know how to set up an admin panel.
for example this is my table:
$query = "CREATE TABLE sites (
id int(11) NOT NULL auto_increment,
title varchar(70) default NULL,
description text
)";
please inform me how to make this possible.
if this is a big process, please point me some tutorials.
thank you very much for any reply.