Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=357112.0
  2. What is a container?
  3. You should do your comparisons in your query, not in PHP.
  4. What is the problem? The only part your wrong about is that nl2br doesn't replace newlines with <br /> tags, it simply inserts <br /> tags after newlines.
  5. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=357109.0
  6. It type casts $comments to an array. ie; Forces $comments to be of type Array. See http://php.net/manual/en/language.types.type-juggling.php#language.types.typecasting
  7. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=357107.0
  8. We are not here to supply people with code. Do you have an actual question?
  9. We can't help without seeing relevant code.
  10. This topic has been moved to Apache HTTP Server. http://www.phpfreaks.com/forums/index.php?topic=357075.0
  11. Do you meen one MySql account for each site user?
  12. It can't be accessible from outside (private), but you can still use it from within the class.
  13. Start by searching through all the code for the function definition.
  14. trq

    Fatal Error

    Hmmm, I didn't even scroll down that far. Still, I'm amazed you bothered reading the code with the indentation the way it is.
  15. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=357042.0
  16. trq

    Fatal Error

    So, with that out of the way, where is uploadPhoto() defined?
  17. trq

    Fatal Error

    I think you mean to say are case sensitive. No, I meant what I said. Functions are not case sensitive in PHP.
  18. trq

    Fatal Error

    functions are not case sensitive in php. uploadphoto is not defined.
  19. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=357038.0
  20. As for your issue. You cannot use $this within a static method. This line: $this->db = new database($db_host, $db_name, $db_user, $db_password); belongs within your __construct().
  21. So, a few posts ago I asked you to show us the source. You still haven't. If you ask for help you should read the replies. Also, not that you cannot call session_start after sending out. Turn error_reporting on and you will see your php code produces errors.
  22. You have already posted an example that you said did work.
  23. Your going to need to be clearer with your description. You can write a script that calles getimagesize() and then call that script from the shell. But getimagesize() isn't a shell commend so it cannot be called directly.
  24. if ($someexpression) { echo '<div>some div</div>'; }
  25. You really need to read my previous reply again. Your entire logic is floored. Why are you using JavaScript to hide the divs when you can simply not send them to the client using php. I meen really, this logic is terrible.
×
×
  • 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.