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 PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=359282.0
  2. $body .= '<b><font color="#006699"><img src="' . $num . '">: ' . $user_name . ':
  3. There is a know bug in php's cgi implementation that allows a client to view the source of a page by supplying a query string without any = sign in it. eg; /?-s is enough to trigger it. At least the first part of looks like this issue.
  4. Sorry, but your post makes little to no sense. Do you have a question?
  5. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=359227.0
  6. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=359217.0
  7. If you look at the very bottom of that page you will see a link to the API documentation. You should read that.
  8. Just store them all in an array. <?php $config = array(); if ($result = mysql_query("SELECT Setting, Value FROM config")) { if (mysql_num_rows($result)) { while ($row = mysql_fetch_array($result)) { $config[$row['Setting']] = $row['Value']; } } } Now that $config array holds all your settings.
  9. So, somehow you now need to pass the email address into the $mailer object. We would have no idea how to do that within seeing the class.
  10. oh, and ps. Stop posting your database credentials on a public forum unless you want bad stuff to happen to your data.
  11. You can remove the WHERE clause, it does nothing. Also, how do you know your not getting any result? You don't actually do anything with it.
  12. jQuery operates on the dom, not the actual file.
  13. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=359179.0
  14. You would need to setup cron to execute your query daily. Nothing really to do with PHP.
  15. Hope this helps: http://thorpesystems.com/2012/05/install-php5-4-on-osx-lion/
  16. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=359169.0
  17. I believe on a mac you would need to recompile php. I just did this last night (not for the same reason) and it's pretty straight forward. I'm probably going to blog about it, so I'll post a link here when it's done.
  18. http://au2.php.net/manual/en/mysqli.installation.php
  19. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=359130.0
  20. I assume name and desc are strings. In JavaScript, just as in php (and any other language) string need to be surrounded by quotes. echo "<polygon fill=".$info['fill_colour']." stroke=\"black\" onclick=\"buildingClick($id,'$name','$b_desc')\" points=".$info['coordinates']." />";
  21. Considering css has nothing to do with php I would suggest using a <link> to bring the css into the pl file. You can't embed a pelr script within a php script.
  22. buildingClick() needs to be a JavaScipt function, not PHP.
  23. Again, your in the wrong place. Try Google.
  24. What is your question?
  25. You might have the wrong impression I think. This forum is for *help* with code.
×
×
  • 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.