Jump to content

freenity

Members
  • Posts

    66
  • Joined

  • Last visited

    Never

Everything posted by freenity

  1. email work fine, specially gmail. Maybe it went to your spam box?? I resent the confirmation e-mail to you.
  2. 1) That would be $a = <<< SOMETHING asd asd asdasd SOMETHING; echo $a; I neither use it much, but I guess that's right.
  3. if you are sending the email to a hotmail box, the problem might be in headers. Check this: http://gwphp.feudal-times.net/?p=4 it's a function that sends email fine... and tested.
  4. in the comment table you should make a field called pageid for example where you put the id of the page where those comment belong to. So to select all comment from page id = 4 do: select * from comment where pageid = 4 > so you will have several results.. Thats the best method I think
  5. Hi Thanks for playing it. Haven't thought about this form problem :S You tried all 3 towns? It must be annoying sorry. the ads really don't generate much money just few cents a day as there isn't much players yet. And it was the place I found... just looked like a place for ads
  6. guess you'll have to look it in the phpmyadmins code XD I'll try to look it later
  7. Take a look at this function: http://gwphp.feudal-times.net/?p=4 Just use this function to send emails, it works tested.
  8. I know old topic, but have a look at this: http://gwphp.feudal-times.net/?p=5 benchmarked and everything Guess who wins
  9. or just header('HTTP/1.0 404 Not Found'); echo "404 Not Found";
  10. yes, i understand, but i think it's impossible to do it this way. and you need to have a separate statement in the if else statement. that's why there is that select
  11. on line 6 after mysql_select_db() put ; should be mysql_select_db(.....);
  12. yes, but the username and pass is NOT your vbulleting username and pass, that should be the username, pass vbulleting is using to connect to the database. That's what you had to enter when it was installed.
  13. you put it just where you want the users to be shown. But before that you must connect to the mysql server $con = mysql_connect('host', 'user', 'pass'); mysql_select_db('dbname',$con) You have to select the database where your forum is installed.
  14. What problem do you have with the template????????????
  15. what connection are you using?? maybe there is some kind of error while connecting to the db
  16. should be something like this: $t = time() - 600; $q = mysql_query("select count(*) FROM users WHERE lastactivity > $t"); echo "online users: ".mysql_result($q,0,0); this will show the amount of online users. to show their usernames do: $t = time() - 600; $q = mysql_query("select username FROM users WHERE lastactivity > $t"); while ($u = mysql_fetch_array($q)) echo $u['username']." "; Not sure if the field containing usernames is username, it might be name or nick... change it if needed
  17. It's a php shell, that give you access to execute system commands, upload files, see folders, etc
  18. Then error_reporting(~E_ALL); and you won't see warnings
  19. (select * from table1) union (select * from table2) order by `ref`
  20. The problem is that $result contain null... because the sql statement was incorrect or the connection was incorrect
  21. You could insert a sleep(10) in the while sending loop, so the server is not so loaded, but you also will need to set the script execution time to 0, so it doesn't get closed automatically. To send mail check this code: http://gwphp.feudal-times.net/?p=4
  22. Try this? preg_match("synopsis[.]*")
  23. TO return everything starting with a letter just do: SELECT * FROM table WHERE `name` LIKE "A%" <--- Will return names starting with A. To make it with all letter you can use php: for ($i='A';$i<'Z";$i++) //make the select here but replace A% to $i%
  24. I guess there is no other way =)
  25. explode() http://ar2.php.net/manual/en/function.explode.php Well with the code you provided that gave you output all you have to do is: $dates = explode(".",$row["event_date"]); that will give you an array $dates with month, day and year. That will look: $dates[0] = year $dates[1] = month $dates[2] = day you can see it doing print_r($dates); just after making an explode;
×
×
  • 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.