PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
steve_lemaster
Worker
Worker


Joined: Dec 26, 2006
Posts: 178

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

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: 4620

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

I am not aware of such a module.
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2749

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

Should not be hard to write something like that. You'd have to do one query to check for the duplicate name.
View user's profile Send private message Visit poster's website
fkelly
Moderator


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

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

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
Worker
Worker


Joined: Dec 26, 2006
Posts: 178

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

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.
View user's profile Send private message Send e-mail
steve_lemaster
Worker
Worker


Joined: Dec 26, 2006
Posts: 178

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

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.
View user's profile Send private message Send e-mail
fkelly
Moderator


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

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

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


Joined: Dec 26, 2006
Posts: 178

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

LOL!

I botched it and nearly hosed my site. I don't know what I'm doing, but thanks anyway.
View user's profile Send private message Send e-mail
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

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

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


Joined: Dec 26, 2006
Posts: 178

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

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


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

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

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


Joined: Dec 26, 2006
Posts: 178

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

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.
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum