NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page mysql stuff with this site

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 09-04-2005, 04:12 PM THREAD STARTER               #1 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



mysql stuff with this site


on http://shas.taylorhewitt.com

ive spent the past 15 minutes constantly deleting spam of this site by a ****ing loser. he is pissing me off so much! it wont end!

its set to automaticly submit to the mysql database, then withdraw it and post it there. what can i do so i have to verify it first?

thanks
TUFKATH is offline  
Old 09-04-2005, 04:23 PM   #2 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Have them register first, or do a simple image verification.

Ah, these aren't bots. Okay, make sure they can only post maybe... once per day.

An easy way, yet easily breakable way to do this is to set a cookie that expires in 24 hours. Then, if the cookie exists as they try to post, do not allow it to be submitted.
Last edited by compuXP; 09-04-2005 at 04:36 PM.
mholt is offline  
Old 09-04-2005, 05:01 PM   #3 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



yeah, cookies are a good idea. if u make them register, you can log their IP and set sessions and cookies and then have a lot of fun with them hehe.

but seriously, u can set a cookie so that it only allows a certain amount of submissions. sorta like flood control on forums.
nasaboy007 is offline  
Old 09-04-2005, 06:22 PM THREAD STARTER               #4 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



The thing is it's supposed to be completely anonymous...
TUFKATH is offline  
Old 09-04-2005, 06:33 PM   #5 (permalink)
RJ
NamePros Webmaster


 
RJ's Avatar
Join Date: Feb 2003
Posts: 12,930
RJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatness
 



Find Marrow Donors! Cystic Fibrosis Parkinson's Disease
You want to moderate the comments before they go public on your site? I don't know what script you're using, but it should be a simple job for a php coder to modify it to require moderation.

In short, add a column to your MySQL table named status and have it default to 0 when new entries are submitted. Then have your site only publically display rows where status=1. Then setup an admin page to view unapproved comments and approve them.
__________________
@DomainBuyer facebook
RJ is offline  
Old 09-04-2005, 07:04 PM THREAD STARTER               #6 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



Yeah I don't know how to do that...
TUFKATH is offline  
Old 09-04-2005, 07:07 PM   #7 (permalink)
RJ
NamePros Webmaster


 
RJ's Avatar
Join Date: Feb 2003
Posts: 12,930
RJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatness
 



Find Marrow Donors! Cystic Fibrosis Parkinson's Disease
Originally Posted by Taylor Hewitt
Yeah I don't know how to do that...
Did you write the script you have now?
????: NamePros.com http://www.namepros.com/programming/121057-mysql-stuff-with-this-site.html

I guess you can hire someone to code it for you, or if you want to make it a public project you we can help you code it here in the forum.
__________________
@DomainBuyer facebook
RJ is offline  
Old 09-05-2005, 10:07 AM THREAD STARTER               #8 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



Most other forums are made to be helpful free of cost but I don't really have money to spend on this sort of thing...
TUFKATH is offline  
Old 09-05-2005, 10:17 AM   #9 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Here...

When they post a topic, use this:

setcookie("cookiename", "date_here_methinks", 60*60*24);

That sets a cookie that expires in 1 day.

Then, when they post.

if (isset($_COOKIE['cookiename']))
{
echo("ERROR > You can only post once per day.");
exit;
}

That should work
mholt is offline  
Old 09-07-2005, 03:32 PM THREAD STARTER               #10 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



What do I put for the date thingy?
TUFKATH is offline  
Old 09-08-2005, 06:43 PM THREAD STARTER               #11 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



bump
TUFKATH is offline  
Old 09-08-2005, 06:52 PM   #12 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Oh, the *date_here_methinks* thing?

PHP Code:
$date "F d Y"
That's off the top of my head, but that produces a human-formatted date. Replace "date_here_methinks" with:

$date

And that just puts the $date into the cookie as its content.
mholt is offline  
Old 09-09-2005, 03:45 PM THREAD STARTER               #13 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



Thanks.

But where do I put this stuff?

setcookie("cookiename", "date_here_methinks", 60*60*24);

if (isset($_COOKIE['cookiename']))
{
echo("ERROR > You can only post once per day.");
exit;
}
TUFKATH is offline  
Old 09-10-2005, 07:06 PM THREAD STARTER               #14 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



bump
TUFKATH is offline  
Old 09-10-2005, 07:17 PM   #15 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
At the beginning of the file where the post is made. Before any other headers are sent.
mholt is offline  
Old 09-10-2005, 07:22 PM THREAD STARTER               #16 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



Quote:
Warning: Cannot modify header information - headers already sent by (output started at /home/www/taylorhewitt.com/shas/index.php:8) in /home/www/taylorhewitt.com/shas/index.php on line 24
That is what I got.
TUFKATH is offline  
Old 09-10-2005, 09:42 PM   #17 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Yeah. Um, post your code IN [ PHP ] TAGS. This means you've already sent headers, or some sort of output, to the browser.
mholt is offline  
Old 09-11-2005, 03:31 AM   #18 (permalink)
Pro Coder & Designer
 
aween's Avatar
Join Date: Apr 2005
Location: Netherlands
Posts: 967
aween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really nice
 



you have to place the code in the upmost top of the page.

if the top page is:

<?php
// allot fo code

do it like this:
<?php
// the cookie code
// allot fo code
__________________
aween web development
aween is offline  
Old 09-11-2005, 04:22 PM THREAD STARTER               #19 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



Really I did that! Same error though...

Is this going to make the cookie set right after the submit button is pressed? That's my aim.
TUFKATH is offline  
Old 09-11-2005, 04:29 PM   #20 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
As I requested before, can you PLEASE COPY AND PASTE THE CODE HERE IN PHP TAGS?

Thanks!
mholt is offline  
Old 09-12-2005, 02:25 PM THREAD STARTER               #21 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



Sorry I didn't see! I PMed you the code.
TUFKATH is offline  
Old 09-12-2005, 02:29 PM   #22 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Taylor.... -_- *grrrr*

I'm lowering your rep... I asked you to post it HERE so that everybody could see, and in [ PHP ] tags so it would be syntax highlighted!
mholt is offline  
Old 09-14-2005, 02:59 PM THREAD STARTER               #23 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



I'm sorry I just don't want everybody to see it incase somebody might get my mysql information. And what do you mean lowering my rep??
TUFKATH is offline  
Old 09-14-2005, 04:14 PM   #24 (permalink)
SQLdumpster.com
 
Encenta.com's Avatar
Join Date: Jun 2005
Location: West Sussex, UK
Posts: 573
Encenta.com has a spectacular aura aboutEncenta.com has a spectacular aura about
 




You see that icon which looks like a set of scales underneath the user's information (to the left)?....yeah
__________________
Encenta - Amazon Associates CMS
Encenta.com is offline  
Old 09-14-2005, 04:57 PM THREAD STARTER               #25 (permalink)
Account Suspended
 
TUFKATH's Avatar
Join Date: Sep 2005
Location: Canada
Posts: 1,373
TUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really niceTUFKATH is just really nice
 



Yeah I know but it says it's even.
TUFKATH is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain sale. 24 hours only. HHDomains Domains For Sale - Make Offer 1 08-09-2004 07:48 PM
Lots of domains. All priced to sell fast. Fontdb.com ShareForums.com and many more. HHDomains Domains For Sale - Make Offer 1 07-31-2004 01:11 PM
Completely Revamped Turnkey Games-Related Site for Sale gph Turnkey Websites For Sale 0 07-25-2004 04:30 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:06 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger