Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
steve_lemaster
Worker
Worker



Joined: Dec 26, 2006
Posts: 178

PostPosted: Tue May 13, 2008 2:12 pm Reply with quote

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.
 
View user's profile Send private message Send e-mail
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Tue May 13, 2008 3:38 pm Reply with quote

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!
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue May 13, 2008 9:23 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Wed May 14, 2008 9:02 am Reply with quote

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.
 
View user's profile Send private message Visit poster's website
steve_lemaster







PostPosted: Wed May 14, 2008 12:23 pm Reply with quote

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







PostPosted: Wed May 14, 2008 12:25 pm Reply with quote

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







PostPosted: Wed May 14, 2008 6:02 pm Reply with quote

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







PostPosted: Wed May 14, 2008 10:18 pm Reply with quote

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

PostPosted: Thu May 15, 2008 6:04 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
steve_lemaster







PostPosted: Thu May 15, 2008 6:14 pm Reply with quote

A cynch you say?

Remember, you're talking to a monkey Mr. Green

I've tried to install XAMPP once before and was completely lost when I was doing it.
 
montego







PostPosted: Thu May 15, 2008 6:34 pm Reply with quote

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. ROTFL killing me Laughing
 
steve_lemaster







PostPosted: Thu May 15, 2008 11:09 pm Reply with quote

Unfortunately, I don't know any php coders aside from those on this site Confused

I'm one of those people that only has to be shown once or twice.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©