Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Then please mark as solved and share the solution if you want.
  2. Put these two lines directly after your opening PHP tag: ini_set ("display_errors", "1"); error_reporting(E_ALL); If you're not receiving nor SQL or PHP errors than double check that your query actually returns results. Are you sure your DatabaseConnection() method is connecting?
  3. You have: $result_set= mysql_query($query); but then you use: while($row = mysql_fetch_array($result))
  4. $result_set
  5. You're missing a ; before the terminating brace.
  6. Always nice to hear, thanks!
  7. I personally like books for learning. The web is nice for reference and tutorials here and there. I like to follow a scenario or story so I can relate all the working parts and see how they work with each other. Although, I haven't used this series for PHP/MySQL, the "Head First" series has always been a fun & good learning experience: http://www.amazon.com/Head-First-MySQL-Lynn-Beighley/dp/0596006306
  8. Most browsers can translate it for you. With Chrome it pop ups automatically.
  9. It's equivalent to: if($showarchive) { echo "checked='checked'"; } else { echo ""; } There's also an example in the manual link AbraCadaver provided in Example #2.
  10. mrusho, in the future, please place OR tags around your code.
  11. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=344739.0
  12. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=344755.0
  13. Maq

    Hey

    Hi welcome to the site. Please try not to spam your other thread, it will get answered when people get to it.
  14. Yeah sorry. Not sure if this is legal with joins, but try: SELECT COUNT(t2.userid) AS t, eventname, FROM eventtable t1 LEFT JOIN eventfans t2 ON t1.eventid=t2.eventid GROUP BY t2.eventid ORDER BY t
  15. Join the tables on EventID, SUM the UserID and ORDER BY the sum alias.
  16. What exactly is the problem? Do you have any code? Example #4 shows you how to loop through: http://us3.php.net/manual/en/simplexml.examples-basic.php For the name you need the attribute: http://us3.php.net/manual/en/simplexmlelement.attributes.php
  17. Maq

    mongoDB

    Haven't personally used it, and I'm not sure if this helps answer your question(s), but there is a tutorial on PHPF with some info on MongoDB that might help: http://www.phpfreaks.com/tutorial/an-introduction-to-php-and-mongodb
  18. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=344379.0
  19. You should only include those columns in your query if the user fills them out. In your table definition you can specify a default for each column.
  20. So what is happening? Do you see 'can\'t delete user'? Errors?
  21. The only thing I see is, "Hacking Attempt".
  22. In the future, please place OR tags around your code.
  23. Is this line 307? $ex_n3 = mysql_fetch_assoc($three); The error usually means your mysql_query returned false because your query is invalid. Change this line to: $three = mysql_query("SELECT name FROM chicken_names ORDER BY likes DESC LIMIT 1") or die(mysql_error());
  24. I don't even see the gold prices listed on the initial load for gold-1. What do you mean gold-1 breaks? Blank screen? Errors?
×
×
  • 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.