Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. You're trying to invoke methods from the $db object but it's just declared as a global. global $db; Did you mean create an object from a database class you have?
  2. Echo $qry after this line: $qry = "INSERT INTO members(firstname, lastname, login,) VALUES('$fname','$lname','$login')";
  3. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=317444.0
  4. Maq

    Fail

    The help here is free and anyone can give answers, so you will get the occasional bad answer. Also, considering that you haven't even been a member here for 2 weeks and most of your posts come from 2 threads, using the word 'always' is a poor choice.
  5. Damn, you beat my high score. I wrote a quick java robot program to click on the screen for 10 seconds... got a couple thousand.
  6. If you Google for this topic (PHP sql database class) then you will find many examples. If you have specific questions I will be more than happy to help.
  7. I would create a class to handle your SQL. This way you can easily reuse your code. Now, depending on how your code is already structured, it could be a bit of an overhaul, but worth it IMO.
  8. Warning: Invalid argument supplied for foreach() in /*/*/*/*/*/*/html/plugins/search/hdflvsearch.php on line 110 This warning means that $rows is NOT an array. Which probably means that your query is failing ($db->setQuery). Double check that it is correct and echo out your variables to ensure the values used in the query are what you expect.
  9. Post the exact error.
  10. Like ManiacDan mentioned, XSL is the easiest and most efficient way to do this. You can embed HTML into the XSL sheet and still use CSS to style your HTML. If you don't want to go this route and still want to use PHP then you can use something like SimpleXML.
  11. The wrong parameter types are being passed in for the implode function: http://us.php.net/implode Takes either [string, Array] or [Array] and default the glue with a comma I believe. Have you tried asking the author?
  12. Mind sharing so people can use this thread as a reference in case they run into the same problem?
  13. Just Google "JQuery slideshow" and you should get plenty of hits. Here's one with 20 decent slideshows: http://graphicalerts.com/20-best-jquery-slideshow-image-photo-gallery-plugins/
  14. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=315144.0
  15. What exactly are you referring to? The top black banner or the slideshow?
  16. Hi Dan, welcome!
  17. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=314776.0
  18. Really? The previews looked horrible.
  19. } at the very end to close your class.
  20. You're missing the terminating brace for your class.
  21. You can 'man' almost any command to acquire detailed information: man mysql
  22. You would use: mysql -uroot -p then it will prompt you for a password. To create a database, it's simply: create database database_name;
  23. No problem, just trying to make everyones' lives easier
  24. Wordpress is open source, have you taken a look at it?
  25. Doubtful. mysql_query returns a resource id, and that's what you're seeing. What are you trying to echo exactly? If you want to echo the 'query' you're going to have to put it into a string first. If you want data, $row is holding your fetched result set array. That's where the data is.
×
×
  • 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.