Author |
Message |
steve_lemaster
Worker


Joined: Dec 26, 2006
Posts: 178
|
Posted:
Tue May 13, 2008 2:12 pm |
|
Is there a module where members can submit names to a page and checks to make sure there are not any duplicates before names are added?
What I am trying to do is create a module where members can submit the names of their state senators with their email address to a page. |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Tue May 13, 2008 3:38 pm |
|
I am not aware of such a module. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Tue May 13, 2008 9:23 pm |
|
Should not be hard to write something like that. You'd have to do one query to check for the duplicate name. |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Wed May 14, 2008 9:02 am |
|
Look in Your_Account /admin/index.php. Look at case adduser. There is a check for duplicate username and an error if you try to add a duplicate. You could model something after that. |
|
|
|
 |
steve_lemaster

|
Posted:
Wed May 14, 2008 12:23 pm |
|
evaders99 wrote: | Should not be hard to write something like that. You'd have to do one query to check for the duplicate name. |
So, I would have to make a MySQL entry and a module that checks it and then writes to it. |
|
|
|
 |
steve_lemaster

|
Posted:
Wed May 14, 2008 12:25 pm |
|
fkelly wrote: | Look in Your_Account /admin/index.php. Look at case adduser. There is a check for duplicate username and an error if you try to add a duplicate. You could model something after that. |
I was looking at that earlier. From what I can see, it looks like I'll have to create a table. |
|
|
|
 |
fkelly

|
Posted:
Wed May 14, 2008 6:02 pm |
|
Yes, that is likely that you will need to create a table. If you have some of the data in something like Excel it is not very hard to import it into the table using PHPmyadmin. |
|
|
|
 |
steve_lemaster

|
Posted:
Wed May 14, 2008 10:18 pm |
|
LOL!
I botched it and nearly hosed my site. I don't know what I'm doing, but thanks anyway. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Thu May 15, 2008 6:04 pm |
|
steve_lemaster wrote: | LOL!
I botched it and nearly hosed my site. I don't know what I'm doing, but thanks anyway. |
This is why we recommend getting yourself XAMPP for your PC. It is a cynch to install and you can simply use phpMyAdmin even to take an export of your site and load it into MySQL. It has everything that you need to "Play" with your site on your local PC so that you NEVER mess up your production one. Once you have ironed out all the kinks, then, and only then, do you apply the final product to your live production site! |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
steve_lemaster

|
Posted:
Thu May 15, 2008 6:14 pm |
|
A cynch you say?
Remember, you're talking to a monkey
I've tried to install XAMPP once before and was completely lost when I was doing it. |
|
|
|
 |
montego

|
Posted:
Thu May 15, 2008 6:34 pm |
|
Well, I guess its relative to trying to install MySQL and Apache and PHP all from their separate downloads. Sounds like you may need to find a geek-monkey friend to hang around with and then you can give them a banana or two to help you out.  |
|
|
|
 |
steve_lemaster

|
Posted:
Thu May 15, 2008 11:09 pm |
|
Unfortunately, I don't know any php coders aside from those on this site
I'm one of those people that only has to be shown once or twice. |
|
|
|
 |
|