Search found 8 matches

by kcjonez
Tue Sep 28, 2010 7:27 pm
Forum: PHP - Code
Topic: Check Username
Replies: 9
Views: 218

Re: Check Username

yes...I tend to get a little lazy and put die() for everything stopping the script.

exit() should be used for cleaner code.

Never tried the mysql_real_escape_string...does that purge the $_POST values?
by kcjonez
Tue Sep 28, 2010 5:12 pm
Forum: PHP - Code
Topic: Check Username
Replies: 9
Views: 218

Re: Check Username

John Cartwright wrote:Please do not post live username/passwords (I've removed them). Thanks.
sorry...was just posting what he posted initially. Might wanna check up ^^^ there too.
by kcjonez
Tue Sep 28, 2010 3:49 pm
Forum: PHP - Code
Topic: Check Username
Replies: 9
Views: 218

Re: Check Username

another unecessary practice I see in there is assigning values to $name, $password, etc. Just creates extra code that you can simply get by calling the $_POST[''] values. Try this code for your registration page. Just copy and paste it to a new file on your server. <? mysql_connect("localhost&q...
by kcjonez
Tue Sep 28, 2010 2:20 pm
Forum: PHP - Code
Topic: while() sending email times out...
Replies: 8
Views: 307

Re: while() sending email times out...

never thought of the refresh option! that's a good idea...thanks. As for 3rd party apps, I kind of want to keep this all within the site and trying to make it as simple to use as possible and with one login. Most external scripts I've run across have their own login and that can get kind of annoying.
by kcjonez
Tue Sep 28, 2010 12:13 pm
Forum: PHP - Code
Topic: while() sending email times out...
Replies: 8
Views: 307

Re: while() sending email times out...

just ran phpinfo() and seen that the max execution time is set to 30 seconds which is about how long it runs before I get the error. So I'm just going to have to set it up to run x amount at a time.

time to hit the books to figure that one out! lol
by kcjonez
Tue Sep 28, 2010 11:31 am
Forum: PHP - Code
Topic: while() sending email times out...
Replies: 8
Views: 307

Re: while() sending email times out...

OK...just set the db to update the current newsletter's date so I don't have to reset anything. Here's the error message I get: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, s...
by kcjonez
Tue Sep 28, 2010 11:08 am
Forum: PHP - Code
Topic: while() sending email times out...
Replies: 8
Views: 307

Re: while() sending email times out...

thought about adding the sent verification to the db, but I'd have to clear it each time I sent the newsletter. And as for running the script again, I'd have to send it out to all the customers again and I'd rather not spam everyone. guess I could just change the MySQL query to ORDER DESC and try it...
by kcjonez
Mon Sep 27, 2010 1:01 pm
Forum: PHP - Code
Topic: while() sending email times out...
Replies: 8
Views: 307

while() sending email times out...

I'm having a problem with a newsletter script I wrote. I used a while loop to send the email out to all users in the database and when executing, it returns an error after sending about 50 email. There are over 600 email in the DB. The script I wrote has worked before without any issues, but I've ne...