Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Check your query actually found some results before returning what you assume is a record.
  2. The error occurred on the line where your query was actually executed wiseguy.
  3. In 5.5 there is an event scheduler (see http://dev.mysql.com/doc/refman/5.5/en/events.html) otherwise, you'll need to use your OS's scheduler to schedule a job for execution.
  4. Your code still doesn't make allot of sense. Replacing %%%SPONSOR%%% and saving the result in $str still isn't going to magically replace %%%SPONSOR%%% within your tpl file if that's what your trying to do.
  5. It needs to be defined somewhere before this line.... $str = str_replace('%%%SPONSOR%%%', $_SESSION['sponsor'], $str);
  6. Where is $str defined?
  7. trq

    cPanel Alternatives?

    http://en.wikipedia.org/wiki/Comparison_of_web_hosting_control_panels
  8. trq

    cPanel Alternatives?

    Just seems your working backwards to me. having an understanding of the underlying technologies is always going to be an advantage.
  9. trq

    cPanel Alternatives?

    cPanel changes the way most of your system works. To be honest, I hate control panel for this very reason. Why not learn to manage your resources manually? FTP and MySql are reasonably easy to manage and you will find allot more documentation around for the traditional methods.
  10. Actually, looking at your code. You should only be using mysql_real_escape_string on the data being sent to the database, not the data being sent to the email. Re-arrange your code accordingly.
  11. You need to track down where exactly they are coming from. The \n\r chars used for newlines are invisible and shouldn't be seen. The \n\r chars you are getting MUST be getting forced into your data somewhere along the line.
  12. It would be, but it wouldn't teach you how to write your own rules which defies the purpose. Wouldn't you rather read a few tutorials and actually learn what you are doing so that next time you don't need to come and ask someone else to do it for you again?
  13. Your original post would have been much better received if you had posted what you did in your last reply, showing that you have at least made an effort.
  14. You need to run all user inputted data through mysql_real_escape_string.
  15. The manual is always a good place to start.
  16. None. No, you are not right at all. I'm really not sure where your even getting these ideas from. The code is terrible though.
  17. Sorry, but I said relevant code. The error states, line 49 of test2.php. You've posted a bunch of code, none of which are marked as being test2.php. ps: We have tags for posting code.
  18. http://api.jquery.com/jQuery.ajax/
  19. Can you stop asking these random question when its all covered in the manual?
  20. No.
  21. Make sure the function definition is included into scope.
  22. From the man:
  23. I really don't want to have to download anything, if you could post the relevant code you will likely get a quicker response.
  24. Whatever, the rest of my post still applies.
×
×
  • 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.