Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. because it is only posted to the first page.
  2. It will at least point you in the direction of what you need to know. Are you confident using the Zend Framework? If not, I would become very comfortable with that first.
  3. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=318389.0
  4. Email piping has nothing to do with php. What mail server are you using?
  5. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=318455.0
  6. Having a better look at your code now. I would forget all about classes and functions for a while, you might need to revise some php basics. Your code really makes little sense. The entire process run in a while() loop, why? Your try and execute another while loop passing $result to mysql_fetch_array() yet $result is not defined. Within that loop you execute a query and then do nothing with $results. Really, it is all over the place.
  7. Sorry, I obviously completely misread your code (at work, with a few people around). Anyway, there really is no need for a class here at all. Classes shouldn't be used to simply group functions together, theres allot miore to them than that. I understand hwoeever that your likely just trying to learn the syntax. Theres quite a few errors with your code. Classes, like functions have there own scope. That means, all those arguments passed to mysql_connect() do not exist. Not likey the cause of your issue, but it's where I'm starting.
  8. The syntax for a function is.... function nameoffunction() { // code } Your code is a mixmatch of classes and functions that doesn't make allot of sense at all.
  9. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=318439.0
  10. yes. But I would be getting rid of Xampp's Apache as well.
  11. You can compile php and install it to wherever you like. Still Xampp isn't exactly production ready, I would definitely be getting rid of it. You can setup your distros maintained PHP and Apache first, and migrate quite easily.
  12. It's not exactly formatted in a way anyone can read it. Care to fix?
  13. I'd start with removing xampp. There is no need for these pre-configured packages when using Linux. From there, I would install PHP and whatever extensions you want using your distro's package manager (there is also rarely any need to compile from source).
  14. That is indeed the point. And that is indeed the reason. And maybe to piss off the person who owns the site (and likely the code unless otherwise stated in the contract when the work was done).
  15. Better still. trigger_error(mysql_error() . "<br />$sql"); Then all you need do is enable display errors on your development server and disable them on production.
  16. You don't actually need to compare any values, you should write your check into your query. $sql = "SELECT earth_room FROM $table_name WHERE month='$month' AND day='$day' AND year='$year' AND earth_room = 'Reserved' LIMIT 1"; if ($result = mysql_query($sql)) { if (mysql_num_rows($result)) { echo "Room Already Reserved"; } else { echo "Room Available"; } } else { trigger_error("A useless error message!"); }
  17. If you can understand its contents you can edit it.
  18. There is a link to a good free book in my sig (Hudzilla).
  19. This topic has been moved to Application Frameworks. http://www.phpfreaks.com/forums/index.php?topic=318251.0
  20. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=318249.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.