Jump to content

Djrikidk

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Djrikidk's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This is the error i get: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\MafiaSoul\index.php on line 2511
  2. Hi there. I've been trying to figure this out for weeks, and i've been pissed off so many times because it works for anyone else except me.. I use the mail(); function in PHP, and this is my code: $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: MafiaSoul <bot@mafiasoul.com>'; $to = 'bheart@mafiasoul.com'; $subject = 'Activation E-mail'; $message = 'This is your activation E-mail'; mail($to, $subject, $message, $headers); The code works fine on my server hosted by JustHost, but since i am building on the same code on my localhost i want to be able to send mails form there too. But it can't. I've asked on 3 other forums and they replied with all kinds of advanced intel which i didn't understand at all and i am new to this stuff so please go easy on me with the advanced stuff...
  3. Thanks alot! I'll see if it works with my code!
  4. I have the two tables, Table 1 and Table 2, my PHP code displays data from every row of Table 1, the data displayed is currently ordered by a column from Table 1, but i want it to be ordered by a column from Table 2, where it is the same rows except that in Table 2 it displays player stats like money, strength and such. So i would like that when the values from Table 1 is echoed out, they're sorted by a the strength column which is in Table 2.
  5. I'm not sure if this is actually supposed to be in some sort of a SQL forum instead, but since i don't know any and it is very close to PHP i'll just write it here. I wanna know how i can order by a column from another table, because i have two tables, and my PHP code is meant to show users from Table 1, which is used to store login information and such, but it should Order the values by a column from a different table, Table 2, which stores the amount of money and strength the users got. Every user has a row in both tables, with a column with their Username in it.
  6. How should i register a PayPal account? I mean, i looked at the products tab, but i'm not sure which one i should choose then, and how do i make PHP code that can send the Credit Card number to PayPal?
  7. Hi everyone, i am making an online PHP game, with alot stuff that has limits and such. I've been thinking about adding something so the user can buy a premium account, so the limits is removed. The user should be able to buy a premium account for something like $2, with the persons credit card. But, how do i do that? And is it free?
  8. I forgot to say that i am pretty new at PHP and MySQL, so if you guys could give an example or something, it would be pretty nice!
  9. Hi everyone! I need some help with this logout script i am making. The logout thing is working fine, it logs the user out nice and smooth when you click on the log out link. But now i want it to log the user out after 20 minutes of inactivity, i've searched on Google and found some pretty nice scripts for that, but the problem is that when an user logs out a value in my Database changes so the user will be displayed as offline. I would like to execute a query after those 20 minutes of inactivity! So basicly, i need a script that can execute some code after some time of inactivity. I need help!! If possible i would also like to make the timer keep counting even if the user closes the browser.
×
×
  • 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.