Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Obviously its not getting the file name from wherever its meant to be. I don't really have much time to look through the code, I'm at work.
  2. https is served via port 443 not port 80. Looks like your php install might not be able to use https either.
  3. You would be better of simply settling for a config array of sorts..... $sql = mysql_query("SELECT variable, value FROM setup"); $config = array(); while ($res = mysql_fetch_array($sql)) { $config[$res['variable']] = $res['value']; } then using.... <div style="background-color:#<?php echo $config['header_color'];?>">
  4. Open firebig console. You get: http://defiantwrestling.net/efedmanager/mods/.php 404 Not Found 2.14s
  5. You had an extra }); at the end plus you where missing the concatination operator (I was in my last post too). $(document).ready(function() { $('a', $('div#addform')).click(function() { $('#innerContent').load('forms/' + $(this).attr('id') + '.php'); }); $('a', $('td')).click(function() { $('#content').load('mods/' + $(this).attr('id') + '.php?id=' + $(this).attr('id')); }); }); Working with Javascript you really need to get firebug going.
  6. The first is a screen scraper. The second is done with javascript that simply detects your visible screen area and loads more content when you get close to the bottom. I'm not sure of any articles, but neither would be too difficult to implement.
  7. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=316254.0
  8. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=316250.0
  9. Well formed html should never need multiple line breaks one after the other. Just because you have stuck all your functions in a class does not make it OOP.
  10. The idea should be to isolate html from php, not combine them.
  11. You would be much better off using arrays instead of variable variables, allot more efficient.
  12. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=316223.0
  13. Its not clear what variable your wanting to pass, but using load(), the simplest way is probably just to attach it to the url.... <script> $(document).ready(function() { $('a', $('td')).click(function() { $('#content').load('mods/' + $(this).attr('id') + '.php?id='$(this).attr('title')); }); }); </script> You could also use the second argument, though it doesn't really matter, both ways will use GET and your data will show up within the $_GET array. I'm sure I've said it before but you really should take a good look at the jQuery manual. http://api.jquery.com/load
  14. You don't need a SELECT query, and even if you did mysql_query returns a result resource, not an array. if (isset($_POST['AddGoal'])) { mysql_query("UPDATE roster SET Goals=Goals+1 WHERE LastName = '$lastname'"); } ps: Do not use variables directly within queries like that, you are asking for trouble. Make sure you sanitize all user inputted data with mysql_real_escape_string.
  15. Do these files actually exist? If so, where? That makes zero sense and completely contradicts itself. What exactly is the problem? Did you even look at the link I posted?
  16. Obviously not well enough for me to help. Oh well....
  17. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=316179.0
  18. http://api.jquery.com/jQuery.ajax/
  19. What exactly does that mean? You need to be allot more specific.
  20. onClick is a client side event. You cannot use it to trigger php because php executes on the server. The only thing you could do would be to send a request back to the server (Ajax).
  21. This thread should get you a pretty good start.
  22. trq

    Intranet

    Of course php would be suitable. The idea of building from scratch or using something pre-existing though is very much up to you and your business. Either way your going to need to invest some time in the project. I have found wiki's to be particularly well suited to allot of intranet requirements.
  23. it's always better to use prepared statements where possible as they can help enforce data types.
  24. SQL queries are just strings, so store the strings in your config file and include it. Prepared statements are something all together entirely different.
×
×
  • 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.