Jump to content

.josh

Staff Alumni
  • Posts

    14,780
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by .josh

  1. well darn, I came across clone when I was researching but it didn't seem like that's what you were going for. Glad you got it sorted out!
  2. Well, kinda depends. You might need all the standard stuff any other businesses need, like a business licence, tax id, etc.. but this is the internet, so idk. I'm not a lawyer so I couldn't tell you for sure. Hence my first post:
  3. You could break it down into chunks. Put the mail function inside a loop cycling through each email address in the $tolist array (or 5 at a time, or 10, or whatever).
  4. Man I don't know then...if you wanted to create a copy without changing the original, then according to the manual, you had it right (without the &)...so...I'm not sure why it would change the other one...but like I said, I'm a complete newb when it comes to oop. Sorry I couldn't be of help
  5. yeah..no. I was wrong. However, I was poking around, and it seems that if $_SESSION['user'] is an object, and you do $user_temp = $_SESSION['user']; $user_temp now becomes a copy of the whatever class $_SESSION['user'] is, but it does not carry the information (I think that's why it's showing the wrong date, or rather, a default of the first date it can show). I think you are gonna have to just forget about using $user_temp and just use your session variable, or, if I'm reading this thing correctly, you might be able to do $user_temp =& $_SESSION['user'];
  6. You know, I really suck at oop but if $_SESSION['user'] is an object, I think you need to do $user_temp = new $_SESSION['user']; but again...I am the suck at oop so that's just a crap shoot and I hope someone better can help you.
  7. $last = last($cats); edit: sorry.. end($cats);
  8. If it initially shows the correct date, then it's probably not a sql problem. Might possibly be php's fault but we'd have to see some php code, particularly the code that uh..interfaces with json/flex or whatever (not really that keen on those..don't really know how that works..), possibly even the php code that gets the info from the db.
  9. ..is "show_all" a specific variable, or are you wanting to "show all" as in find out what all your variables are? if it's a specific variable, you'd access it by echo $_GET['show_all']; // this echo's the value of the variable if you are wanting to find out what variables are being passed in your url, $_GET is an array of those variables you'd access them any number of ways here's an example of how to echo them: foreach ($_GET as $key => $val) { echo $key . " = " . $val . "<br>"; } If neither of these is what you mean, then please clarify some more.
  10. all the vars past through the url are stored in the $_GET array.
  11. They hired lots of lawyers to acquire selling rights.
  12. I think you'd have better luck talking to a lawyer, don't you?
  13. so uh, how do you get from your login page to your member only page?
  14. only if you keep the file in a public directory, or have the permissions set for them to...
  15. Got it! From your pastebin: //MD5 Password $username = $_POST['username']; $password = $_POST['password']; $securepass = md5("2392j3k2js21".$password.$username); $_POST['password'] doesn't exist. You need to use 'password1' or 'password2'
  16. <?php mysql_connect("localhost","sa","pass"); mysql_select_db("DB"); $qr = mysql_query("select mail_addr FROM Memb_Info"); while ($row = mysql_fetch_array($qr)) { $tolist .= $row['mail_addr'] . ", "; } //Sending email $subject = "hi"; $body = "message"; $headers = "From: [email protected]\r\n" . "X-Mailer: php"; if (mail($tolist, $subject, $body, $headers)) { echo("<p>Message sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?>
  17. okay how about going into phpmyadmin and physically looking to see if the data is there?
  18. also, echo out $username are you sure that $_POST['username'] exists on your form (spelled correctly, etc...)?
  19. can you repost your updated code (including your debug echoes)
  20. well you got at least 2 problems that I see. First off, $secpassword doesn't exist, so your condition looks like this: if ($row['password'] == NULL/FALSE) { ... } and since it seems to be coming out as true, $row['password'] is turning up FALSE if it's failing, or no result if nothing is returned from your query. edit: Gah! multi-posts before I posted disregard this post.
  21. Ah you're right. I just assumed that since there's that posting activity by time bar graph, that it had something to do with time. I guess your explanation does make more sense.
  22. The error tells you the problem. $_POST is an array of all your posted variables. md5 expects a string. You need to break it down to $_POST['blah'] etc.. one for each of your posted vars EG: $username = strip_tags(stripslashes($_POST['username'])); //assuming 'username' is the name of your form var $password = strip_tags(stripslashes(md5($_POST['password']))); // ditto on 'password'
  23. if(($filetype != ".mp3") || ($filetype != ".MP3")) if that doesn't work then I would suggest echoing $filetype to see if it's holding what you expect it to be holding.
  24. No, because your eregi won't validate those characters. Or at least, it shouldn't. I'm not an expert at regex patterns so I don't know if your pattern will or will not validate those characters, but it shouldn't. In unrelated news, seeing as how you're going through the trouble to make a function to validate the email, I would suggest putting your strlen check inside your function, as well.
  25. http://www.phpfreaks.com/forums/index.php/topic,95562.0.html
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.