Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=321494.0
  2. This link has most of what you want: http://www.phpfreaks.com/tutorial/basic-pagination You're doing to have to use the modulus operator to determine alternating rows.
  3. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=321482.0
  4. There are plenty of hits on Google for this... here's one: http://jquery-howto.blogspot.com/2009/04/cross-domain-ajax-querying-with-jquery.html
  5. Your submit button is named 'addSubCat' NOT 'subcat'. And if you're using POST, then use POST, not REQUEST. Change this line to: if (isset($_POST['addSubCat']))
  6. Sorry I'm not familiar with the PHPRtfLite class. Can you post the 'sendRtf()' method?
  7. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=321480.0
  8. I've said it twice already. Please read this quote:
  9. There are a few ways to do this. 1) You can store the values and pass them as a hidden field to the processing page. 2) (This is a bit unsafe) You can dynamically go through your post values: foreach($_POST as $key =>$value) { echo "post: $key => $value"; }
  10. Did you temporarily turn on error reporting?
  11. Actually it's just a module called mod_rewrite if you're using Apache. The user id is probably a HTTP value.
  12. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=321416.0
  13. And another thing... You're using '$connect1' for the connection variable but checking the connection with '$connect'.
  14. You may have a fatal error. Place these 2 lines directly after your opening <?php tag: ini_set ("display_errors", "1"); error_reporting(E_ALL);
  15. This topic has been moved to Installation & Configuration Issues. http://www.phpfreaks.com/forums/index.php?topic=321411.0
  16. Do you care to share in case someone experiences a similar issue?
  17. If this is resolved could you please mark so? (Button on bottom left)
  18. Your error starts right here: $check = "SELECT * FROM users WHERE username = '$username' LIMIT 1&#8243;; You have '&#8243;' which is the ascii value for a double quote. I don't know how that would have gotten there but replace it with a double quote. (You thought line 51 was something else because your formatting is messed up.)
  19. No, I did not take offense to it, just misinterpretation on my part (but thanks for clarifying). Try something like this (sorry haven't tested it): if(isset($_POST['submit'])) { $code = mysql_real_escape_string($_POST['code']); $query = "SELECT * from [table][tr][td] WHERE code = '$code'"; $result = mysql_query($query) or die(mysql_error()); if($mysql_num_rows($result) > 0) { echo "Code already exists"; } else { echo "Code is free"; } } ?> </pre> <form action="" method="POST"> < [/td][/tr][/table]
  20. No problem. You are not allowed to delete your own posts. PHP is a scripting language and very easily integrates with HTML. In fact, that's ultimately what PHP produces. If you want to use the $id variable in the HTML you would simply do: echo " ...text to be displayed here "; ?>
  21. I deleted your other topic. Please do not double post, it wastes peoples' time.
  22. Can we see all the relevant code? What part are you stuck on?
  23. Try this: $qry_str.=" and Initials LIKE '%{$Initials%}'";
  24. I suggest you run your site with YSlow. There are some loading issues that you grade poorly on. Here's some key points: I think the site overall looks nice, especially the header. It's a very simple and clean design.
  25. Sure. The only issue with using JS is that some people may have disabled it but that would be a very very small percentage.
×
×
  • 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.