Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Enclose the HTML in tags. You could also put the code in a textarea, I think that would work as well.
  2. Guess you haven't seen the sticky: http://www.phpfreaks.com/forums/index.php?topic=277416.0
  3. Define a variable $x = 0; before the while. In each IF block increment it by 1 $x++;
  4. Not sure what you mean by this? Count the results from the query? How many IF conditions are true? This makes no sense to me. Please elaborate.
  5. In the future, please use tags around your code.
  6. Maq

    Hi Guys!

    Hi reidel, welcome to the community. I'm sure you will learn a lot here.
  7. Maq

    CSS tutorial

    I think it's a great idea. I often forget the basics of CSS and usually resort to, "if it works and looks good, then I'm done" mentality. Besides someone might have a better understanding from your perspective of a tutorial. Just curious, do you have a structure or a planned out way of organizing your tutorial? Like small individual examples? Maybe you could do a tutorial that leads into a small website.
  8. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=330205.0
  9. This question has to do with SQL, not PHP. As chris mentioned, learn to use mysql JOIN.
  10. If you are looking to freelance someone (even for free), then I will move this thread to the Freelance Section. Let me know.
  11. In the future, please use tags around your code.
  12. You're not checking for the amount of results. Change this line to: if(mysql_num_rows($result7) > 0) Look up the returned values for mysql_query. The only time you will get to your else is if your query returns a FALSE on error (and maybe some other cases).
  13. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=330192.0
  14. There was actually 3. Just call the function on the string you want and it will replace all occurrences.
  15. We told you what function to use and you didn't even try it...
  16. Use: str_replace or if you need to use something a bit more dynamic, then you need regex: preg_replace
  17. As stated above, this is a security issue. You should be escaping any user input that goes anywhere near the DB. You should change your code to look something like: $id = mysql_real_escape_string($_GET['id']); $getdeclined="SELECT * FROM trade_offers WHERE pokemon_trade_id=$id"; Change this line to and tell us the exact error message: $decusername=mysql_query($getdecusername) or die(mysql_error());
  18. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=330095.0
  19. Here is a link for you lazy people: http://www.batads.com
  20. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=330098.0
  21. That also could mean you're loading the actual file, rather than letting the web-server serve the page (localhost).
  22. This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=330078.0
  23. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=330091.0
  24. Have a read here: http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_sum
  25. Have a read here: http://dev.mysql.com/doc/refman/5.1/en/counting-rows.html
×
×
  • 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.