Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=332499.0
  2. If you posted your thread in the correct board you may have seen the massive sticky thread HEADER ERRORS - READ HERE BEFORE POSTING THEM which contains invaluable information on the exact cause of this very common new comer error.
  3. If your unsure of this then what exactly do you want help with?
  4. Again, debug your code by looking at the contents of $amacontent.
  5. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=332443.0
  6. trq

    Query Help

    Your database design is the problem. Why do you have multiple tables containing the same types of data?
  7. Really, it wouldn't hurt you to try and debug your own code, what have you done? echo $amacontent to see what it is actually returning.
  8. If you can access phpmyadmin then php IS working. That makes this a PHP Coding question, not an install question. I would post your question in the third party scripts board seeing as it doesn't sound like you wrote this code yourself.
  9. ps: JavaScript is in no way related to Java.
  10. If WAMP is setup you just need to put the code in place. This isn't really an install question.
  11. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=332275.0
  12. And what exactly do you need help with?
  13. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=332276.0
  14. This topic has been moved to Apache HTTP Server. http://www.phpfreaks.com/forums/index.php?topic=331900.0
  15. Neither of these statements are absolutely true. When you are using arrays within a double quoted string you don't actually need to quote the keys separately as PHP doesn't look for CONSTANTS within strings. Of course, it is always best to stick to good habits and quote your non numeric keys. The braces {} are also only a recommendation when dealing with complex variables such as arrays and objects within double quoted strings.
  16. Because you have an array within an array. It's not really necessary really though.
  17. You would need to call the function via the Search object. Whether or not that is done on page load would be up to you I suppose, I'm not sure it would make sense to do so.
  18. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=332178.0
  19. $array = array(); $array['gigs'] = array(); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $array['gigs'][] = $row; } $output = json_encode($array); Should get you.... { "gigs":[ {"date": "06-05-2011", "gl_venue": "O'neills", "gl_city": "Southend"}, {"date": "07-05-2011", "gl_venue": "Power League", "gl_city": "Peterborough"} ] } And so on.
  20. Pfff. Use firebug to debug JavaScript.
  21. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=332103.0
  22. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=332028.0
  23. You have not defined $row anywhere. See http://php.net/mysql_fetch_assoc
×
×
  • 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.