| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| DNOA Member | Hi, This code: PHP Code: 1. A row of the Md5'ed $main variable, like it's supposed to, but then... 2. Another row which has the SAME value for $main EACH TIME I run this script... very odd. Here are the rows it inserts after I run the script only 2 times: b2fcb4ba898f479790076dbd5daa133f d41d8cd98f00b204e9800998ecf8427e 84d72f977c4770ee176911e3165257d1 d41d8cd98f00b204e9800998ecf8427e As you can see, the second and fourth rows are the same... :
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #3 (permalink) |
| DNOA Member | It's kind of long so I'm not going to post it here, but I can assure you it has NO MySQL insert statements in the file AT ALL. Just an update and a few selects. Any other ideas?
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #5 (permalink) |
| DNOA Member | I do that just in case I guess it's not necessary but it makes sure you don't get confusion with other rows if something DOES go wrong. That can't be the problem... can it?I took out the MD5 and found out that it was just a " " single space character - now I'm confused O.o After rewriting it a little bit, THIS QUERY: mysql_query("INSERT INTO banned VALUES(NULL, '$main', '$datea')"); would insert the literal value "datea" into the column - Now I'm REALLLY confused! I even went as far as setting a variable when it runs the INSERT query, if it isn't already set. This way it should force it from running more than once... but still no change! Dude my PHP is mutating or something O.o ... lemme post the current file: PHP Code: Lol this is getting on my nerves...Any help is VERY greatly appreciated! ^_^
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #7 (permalink) |
| DNOA Member | Oh. :P that might be it. It's 10 PM right now so that might explain something ![]() Still not solving the double entry thing :-/
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #9 (permalink) |
| DNOA Member | Nope.
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #10 (permalink) |
| DNOA Member | Ah - fixed it. Not sure why it was doing this, but I discovered it was running the file twice for some reason. I was able to prevent it from happening but do not know what was causing it.
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BannersMax Blowout! 50% Off All Banners! $6.98 for 468x60 Banners! Limited Time offer | instanet | Web Development Wanted | 3 | 07-02-2005 04:10 PM |
| Actual expiration time? | Shockt | Domain Name Discussion | 2 | 05-27-2005 09:50 AM |
| Domain and Online Assistance When You Have No Time | rak147 | For Sale / Advertising Board | 2 | 02-29-2004 07:43 AM |