Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. $q="SELECT * FROM gallery_album WHERE name = 'BMWcars'";
  2. I'm not sure I can put it any simpler. "jQuery's animation() only affects css properties with a numeric value" The logic is simple. Given 2 seconds to make the number 0 into the number 100 all you need to do is add 0.5 to recursively every hundredth of a second. However given 2 seconds to turn the empty string "" into the string "3px solid #8f8f8f" the logic becomes far more complex. Again, jQuery's animation() only affects css properties with a numeric value. This is a coincidence.
  3. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=312518.0
  4. jQuery's animation() only affects css properties with a numeric value.
  5. You don't have any if statement that check if your query returned any results or not.
  6. How about you post the code that "isn't taking"? and we go from there.
  7. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=312398.0
  8. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=312399.0
  9. Why would you want to use php for this? Firstly, you would need to create a deamon of some sort that once started will keep running (in a loop), you would then have it check the time on each iteration of that loop and see if it matches the time stored within your database. As for the alarm sound... theres probably a few ways of doing it, but seriously, the right tools for the job, is something you should take to heart.
  10. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=312377.0
  11. I'm not at all into Anime and generally don't understand the idea, but I have to say, that is a damn fine looking site. Not at all what I was expecting to see. Normally these sites look like there made by 20 year old kids. This is very clean and modern looking. Well done. I didn't adventure around too much, but yeah, an initial impressions...
  12. $action doesn't exist within other methods of your class. You would need to define it local to the object itself. class Foo { private $action; public function __construct() { $this->action = 'hello'; } public function test() { echo $this->action; } } $obj = new Foo(); $obj->test();
  13. trq

    OOP PHP

    I wouldn't actually. Moaning will get you nowhere. I simply explain that it is imperative that systems be maintained with the latest software for the various security and feature reasons and then explain that I will not maintain an application on an old code base. Take it or leave it.
  14. trq

    OOP PHP

    There is also a huge push at the moment from all the big frameworks in particularly to move to 5.3. Most are going there and dropping backward compatibility with 5.2. Programming for php4 is ridiculous IMO. Your application design will suffer and your simply going to get left behind.
  15. You need to sset your smtp setting within your php.ini or at very least use ini_set.
  16. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=312323.0
  17. Look at my example again. Don't bother adding the () as part of the string/variable, there not.
  18. I don't see any reason to store action for later use within the object. if (isset($_GET['action'])){ $action = ucwords($_GET['action']); $this->$action();}
  19. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=312305.0
  20. The code in your original post is Bash, I'm not sure where your getting 'fi' from, that is simply how you close and 'if' statement in Bash. As for that, that's a logic issue. Your original code does no such thing. It simply displays "Access denied" and exits. You want me to fix that too? <?php function getPass() { echo "Enter a password "; $pass = trim(fgets(STDIN)); if ($pass == "jerry") { echo "Password verified."; } else { getPass(); } } getPass();
  21. Short answer: Sanitizing data has nothing to do with registration.
  22. You could use php. <?php echo "Enter a password "; $pass = trim(fgets(STDIN)); if ($pass == "jerry") { echo "Password verified."; } else { echo "Access denied."; }
  23. This topic has been moved to Other Programming Languages. http://www.phpfreaks.com/forums/index.php?topic=312245.0
×
×
  • 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.