almightyegg
Members-
Posts
791 -
Joined
-
Last visited
Everything posted by almightyegg
-
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
-
I couldn't find anything to do with mail there...dammit
-
I forget the function with when used shows you what is installed on server. They migh have uninstalled it recently...
-
Your Account! Thank you for signing up for an account! Here are your details, make sure you don't lose them! Email: MYEMAIL@googlemail.com Password: mypass Please don't reply directly to this email, it is an automated response. That's what I got when echoing, which was correct, but it still didn't send... Maybe I need to use a function? It wouldn't send it because of the $variables...?
-
$password and $email are set for sure, they are put into the database a few line up. Here is more of my code: $sql = mysql_query("INSERT INTO users (first, last, email, username, password, signup_date, ip, gender, lastlogin, country, race, psyche) VALUES('$first', '$last', '$email', '$username', '$password', '$sign', '$ip', '$gender', '$time', '$country', '$race', '$psyche')") or die (mysql_error()); if(!$sql){ echo 'There has been an error creating your account. Please contact the <a href="mailto:admin@lordoftheabyss.com">administrator</a> if this continues to happen.'; } else { $subject = "Your Account!"; $message = "Thank you for signing up for an account! Here are your details, make sure you don't lose them!\n\nEmail: $email\nPassword: $password\n\nPlease don't reply directly to this email, it is an automated response."; // In case any of our lines are larger than 70 characters, we should use wordwrap() $message = wordwrap($message, 70); // Send mail($email, $subject, $message); echo "Your account information has been mailed to your email address! It's recommended that you keep it saved. You may now <a href='/index.php'>Login!</a>"; }
-
Well, I used to have it sending something else, whih worked then I changed it today because I wanted it to send details rather than links for activations of accounts because I'm scrapping that.
-
I have this: $subject = "Your Account!"; $message = "Thank you for signing up for an account! Here are your details, make sure you don't lose them!\n\nEmail: $email\nPassword: $password\n\nPlease don't reply directly to this email, it is an automated response."; // In case any of our lines are larger than 70 characters, we should use wordwrap() $message = wordwrap($message, 70); // Send mail($email, $subject, $message); and email is defined for sure as it has to go through checks (which I know work). I have no idea what's wrong with it
-
I think this can be done with PHP so: I have a standard drop down list- option1 option2 option3 etc... Next to it I want it to display an image that is associated with it eg. <img src="/images/players/$option.png"> Where the $option is whtever is selected. Can this be done without reloading the page? and using php?
-
create a program that'll make a 3d model from a contour map??
-
I am whiling out information. I want it to while out in rows, and after every third items in a row it moves down EG: I want it to display like this: ITEM 1 ITEM 2 ITEM 3 ITEM 4 ITEM 5 ITEM 6 ITEM 7 etc.... but I can only think of sisplaying it either like: ITEM 1 ITEM 2 ITEM 3 ITEM 4 ITEM 5 ITEM 6 ITEM 7 Or: ITEM 1 ITEM 2 ITEM 3 ITEM 4 ITEM 5 ITEM 6 ITEM 7 Can anyone help me???
-
it isn't redirecting, it is just hiding part of the URL
-
How would I go about writing a command in htaccess to make it so that when a url has variable in it, it hides it. Eg: index.php?id=42&pie=apple would go to index.php but the variables are still there?? I've heard it is possible. Any ideas wiould be greatly appreciated
-
Hmmm...just realised the problem I think. Does it have to be in timestamp col?? This is my setup: $timestamp = date("d-m-Y H:i:s");
-
I tried ordering by timestamp and it was working fine until today (Oct 1st) and it is now appearing at the bottom. It is obviously ordering by day of month...how do I fix that?? Is there a way around it???
-
you need to give us the code...
-
That didn't work either...
-
ooh, it was because of an ajax script getting in the way somehow...so that's fixed/... But the $message still remains after being unset....how can I make it disappear?
-
I'll start with the codes: The Form: <form action="/chat/index.php" method="POST"> Message: <input type="text" name="message"><br> <input type="submit" value="Post"> </form> Index.php: <? $message = $_POST['message']; if(isset($message)){ $timestamp = date("d-m-Y H:i:s"); $insert = mysql_query("INSERT INTO chat (`timestamp`, `userid`, `message`) VALUES('$timestamp', '{$mem['id']}', '" . mysql_real_escape_string($message) . "')") or die(mysql_error()); unset($message); } ?> It shows no errors it just isn't inserting the info.........I have no idea why?!? also a question, once it is working, and I've unset $message if the user refreshes will it still see the $message, I'm not sure I can explain why I think it might still be there...so thought I'd ask...
-
nobody?
-
I'm not 100% sure what you're asking but if I'm right I would do this: <? $result=mysql_query("SELECT * from sTable WHERE field='DH001122'"); // noticed I changed the original query while($res = mysql_fetch_array($result)){ if($res[drop_rate] < 50){ $drop_rate = 50; }elseif($res[drop_rate] >= 50){ $drop_rate = $res[drop_rate]; } $update = mysql_query("UPDATE sTable SET drop_rate='$drop_rate' WHERE field='DH001122'") or die(mysql_error()); }
-
I was wondering is there anyway to hide url variables eg: mylink.php?id=x&action=y&userid=z would go to mylink.php? or just mylink.php ...
-
[SOLVED] another image verification help post
almightyegg replied to almightyegg's topic in PHP Coding Help
Thanks that worked a treat -
[SOLVED] another image verification help post
almightyegg replied to almightyegg's topic in PHP Coding Help
Unexpected T_STRINGS and such....too much hassle. I'll just go with letter and numbers if I can work mout hpow to do it.... -
[SOLVED] another image verification help post
almightyegg replied to almightyegg's topic in PHP Coding Help
The example seemed to pull all sorts of errors How would I include the alphabet characters in my rand too? -
[SOLVED] another image verification help post
almightyegg replied to almightyegg's topic in PHP Coding Help
right I got it sorted . Thanks. How would I make it more complicated (eg. include letters and numbers and squirm the text a bit)????