Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. I posted a link in my previous post but it doesn't work for some reason, here's a basic tutorial on how to accomplish this: PHP and AJAX.
  2. Does anything happen? You should have session_start() at the top of all the pages you're using sessions in. You can print out the session variables to make sure they're being set. print_r($_SESSION); It's also SESSION not SESSIONS (that's my fault, in my example I used the wrong one).
  3. In general you don't have to rewrite your whole script, but your question is very vague... Solve what quickly? Do you have something specific you want to achieve? You may want to read the basics: PHP and AJAX
  4. Yeah I know, but it's impossible to tell when the OP doesn't provide any helpful information. sorry. yes there are different Admins. I am going to check your code to see if that works. What code? We need you to tell us exactly how your login system works, specifically the user groups. So far you have given us no helpful information.
  5. Google has a pretty cool experiment web optimization feature you may be interested in. It lets you choose various "test" content for your site and what percentage of traffic/visitors get each test. It also gives you feedback of which one works the best, has the lowest bounce rate and many more statistics. Hope this is useful. Google - Website Optimizer.
  6. Yeah I know, but it's impossible to tell when the OP doesn't provide any helpful information.
  7. I'm not sure what you mean, the search link shows the same content as the direct link you provided.
  8. Probably sessions? if($_SESSIONS['user_type'] == "admin")
  9. mysql_select_db("brain-host,$conn) or die(mysql_error()); should be: mysql_select_db("brain-host",$conn) or die(mysql_error());
  10. What's the exact error? Please paste the line with the error and some of the surrounding code, cause the code you provided is valid.
  11. Running SQL Inject Me on your homepage gives me 68 failures...
  12. Add this: margin-top: 50px; text-align: center;
  13. What do you want us to say? There's almost nothing there to critique, although it did pass the SQL Inject Me test.
  14. If you want to execute shell commands as root try: shell_exec('sudo -u root -S command_goes_here'); ?>
  15. I don't understand how your code relates to your problem or the point of it. Unless your "getTheValues()" function has some random generation in it, or the ... changes the value of $a, then you're always going to return $a.
  16. I'm not exactly sure what's not working. The "Coverage" and "News Feed" links both show up for me for each game. I'm not sure about the performance issue, I don't use magpieRSS. :-\
  17. Lol, didn't have my coffee yet, I'm drinking it now! Thought you were the OP, obviously...
  18. Yeah it works on the example and my localhost just fine. The only thing I can think of is checking out the permissions, although they should be fine.
  19. Why don't you use what jackpf suggested?
  20. What exactly happens, do you get any error output?
  21. Next time, why don't you setup a testing environment so you don't create "a ton" of files on your computer...
  22. Well your question is not very descriptive so I'm not sure how you would like us to help you with the lack of information. All we know is that you've installed the blog and now the admin login is slow... Have you tried Silverstripe support?
  23. You probably have SQL errors, rerun your script and tell me if there are any errors displayed.. $exists = mysql_query("SELECT * FROM `links` WHERE link = '".mysql_real_escape_string($link)."' LIMIT 1") or die(mysql_error());
  24. There's plenty of templates and tutorials to design such a look. @OP: The second site needs some more colors and style. Looks like you're viewing your site on a black and white TV. It seems so plain and bland. Maybe implement an a better looking header then just h1 tags with white font, like the one in your first site.
  25. You can use array_unique as well.
×
×
  • 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.