Jump to content

Gayner

Members
  • Posts

    549
  • Joined

  • Last visited

    Never

Everything posted by Gayner

  1. Rofl u guys give me warning for just saying the s word but ur so retarded that u think that u think that i am the same person.
  2. no he's not.. u *I'm having trouble behaving properly* i am Gayner i am a different person this guy lives in freakin indian, lol (TO PHP SENISIE}
  3. a Alias just for my account ?
  4. $host = $_SERVER['HTTP_HOST']; $host_upper = strtoupper($host); $login_path = @ereg_replace('admin','',dirname($_SERVER['PHP_SELF'])); $path = rtrim($login_path, '/\\'); $message = "Thank you for registering with us. Your account has been activated... *****LOGIN LINK*****\n http://$host$path/login.php Thank You Administrator $host_upper ______________________________________________________ THIS IS AN AUTOMATED RESPONSE. ***DO NOT RESPOND TO THIS EMAIL**** "; @mail($to_email, "User Activation", $message, "From: \"Member Registration\" <auto-reply@$host>\r\n" . "X-Mailer: PHP/" . phpversion()); ok so it works but when i get my message its like this: It says MAILED BY-CP02.Stablehost.com I don't want to show MY SHARED HOSTING PROVIDEr.. LOL How do i FIX?
  5. HE personally helps me on msn.. that's whyi made this topic lol
  6. rand - And yes, It's more a convenience for the people helping you, when you help yourself. i did look on google what am i supposed to search? random generator php well go try it. it's all random thanks tho. The VERY first result I get when I search up "random generator php" gives me: http://php.net/manual/en/function.rand.php silly i get this: http://www.webtoolkit.info/php-random-password-generator.html lol
  7. rand - And yes, It's more a convenience for the people helping you, when you help yourself. i did look on google what am i supposed to search? random generator php well go try it. it's all random thx tho.
  8. so like a php function that each time it's refreshed it generates a number 1 through 10 and i can echo it out?
  9. Based on what I've just told you, what do you think? a) user have to refresh page b) does php automatically run query after 5seconds I guess ur right, sorry about this... Just php so confusing for me..i try my hard tho and i learn alot from you guys.. just sometimes it get's really complicated.. i try my best i will learn it eventually, lol thanks... i found a online script online and just reverse engineering it now... thx
  10. has nothing in it just a variable i can use so my query doesn't run each time a refresh happens only when a user logs out or after 5 seconds..? So if i use that, will the user have to refresh page for it to work or does php automatically run query after 5seconds ?
  11. Ok i got a session $_SESSION['rofl']; but i need a IF FUNCTION SO: if $_SESSION['rofl'] < 5seconds run mysql_query("DELETE FROM uonline WHERE time<$timech"); How will i do this ? thanks
  12. $result = mysql_query("SELECT * FROM uonline WHERE session='$ses'"); $num = mysql_num_rows($result); if($num == "0"){ $result1 = mysql_query("INSERT INTO uonline (session, time)VALUES('$ses', '$time')"); }else{ $result2 = mysql_query("UPDATE uonline SET time='$time' WHERE session = '$ses'"); } $result3 = mysql_query("SELECT * FROM uonline"); $usersonline = mysql_num_rows($result3); echo "There are: <b>".$usersonline."</b> users online"; mysql_query("DELETE FROM uonline WHERE time<$timech"); ?> I got this but.... why does it use DELETE FROM ? EDIT: Now i got this it works but how do i still don't know why it uses DELETE FROM UAONLINE EACH REFRESH?? $ses = session_id(); $time = time(); $timech=$time-5; $result = mysql_query("SELECT * FROM uonline WHERE session='$ses'"); $num = mysql_num_rows($result); if($num == "0"){ $result1 = mysql_query("INSERT INTO uonline (session, time)VALUES('$ses', '$time')"); }else{ $result2 = mysql_query("UPDATE uonline SET time='$time' WHERE session = '$ses'"); } $result3 = mysql_query("SELECT * FROM uonline"); $usersonline = mysql_num_rows($result3); echo "There are: <b>".$usersonline."</b> users online"; mysql_query("DELETE FROM uonline WHERE time<$timech"); this works but why does it use DELETE query at the end? EDIT::: OK so that query deletes all the sessions after 5seconds.. but that is dumb runnning a query every refresh is there anyway i can make it so it only runs after 20seconds? or 10seconds?
  13. How the hell do i go about doing this? lol my users table, like on some sites like this 1 at bottom u can see everyone that is online, i want to only show people that last clicked in 3minutes or less or don't show them online? But all i got is my user's table and no brain i even searched googled and tried to find a script to fetch online users but am lost,.. thx?
  14. if(isset($_POST['cancel'])) { // cancel } elseif(isset($_POST['confirm'])) { // confirm } edit: oops cagey posted
  15. This guy is a genius and very talented please keep a eye on him and look at what he helps and offers other people it's insane... this guy is smart! Make him PHP Guru plz or different type of group i just luv this guy no homo Plus he helped me hella times... and i just saw him post a 200 line code of help to some other guy 5minutes ago, thanks ~ lol
  16. my friend jsut helped me.. hella i love him no homo here's SOLVED: $query = "SELECT sum(prayers), sum(prayed), (select user_name from users order by id desc limit 1) as `latest` from users"; $result = mysql_query($query); $row = mysql_fetch_array($result); print_r($row); $newest_member = $row['user_name']; :-) enjoy thx !!
  17. $results = mysql_query("SELECT * FROM users ORDER BY id DESC"); $i=0; $first= ''; $prayers = 0; $prayed = 0; while($row= mysql_fetch_array($results)){ if($i==0){ $first = $row['user_name']; $i++; } $prayers += $row['prayers']; $prayed += $row['prayed']; } echo "We have a total of $prayers Prayers and People have $prayed Prayed times. Our newest member is $first"; Sir this works nice, but only 1 problem, i can't be calling my whole user table each time a refresh happens, (my 1.99$/month server will crash in 2seoncds) is there anyway to LIMIT 1 to that query? Or is my proposal just impossible w/o 2 seperate queries? lol thanks for ur help man.. appreciate it alot broski.
  18. id = 1? i got count to work but i need to show newest user too his field name is user_name but i can only do that if i LIMIT 1 but if I LIMIT 1 how do i get count prayed still working or does that ignore the function ?
  19. i just want to count all prayers/prayed... but i can't do that cause i have to LIMIT it to 1 to get only the newest member... so like.. i only want to use 1 mysql query plz thx
  20. like kinda like this but iuno what im doing help me.. query = "SELECT COUNT(prayers),(prayed) FROM users ORDER BY id DESC LIMIT 1";
  21. yea and count * from prayers and prayed and beable to display them echo in php
  22. Ok so i have no idea i only know how to run 1 query i can't use inner join or if i need to? But this i waht I want to do! SELECT * FROM users ORDER BY id DESC LIMIT 1 AND ALSO Select * from Prayers and Prayed so i can echo those out differently, so at the end of my result i can echo out this "We have a total of XX Prayers and People have XXX Prayed times. Our newest member is ____ How do i make it only 1 big query do u mind? thx
  23. Lol bro i was just bein starcastic i only got like 2$ in there anyway, and if i sent it my rates are so high paypal would take out like 85cent'st hen u get like 1.25.. then when it get's sent to u ur rates prob take out 50cent's so u would get like 40 cent's lol
  24. DOOD U ARE THE WINNER!! I WENT TO SLEEP CRYING onh ow to fix this then i woke up and refresh screen and I FOUND A WINEER GOT PAYPAL EMAIL LET ME SEND U SOME $ DOG. the if (isset ($_POST['doLogin_x']) || isset ($_POST['doLogin_y'])) works for opera and ie thx
×
×
  • 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.