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 MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=347091.0
  2. Obviously English isn't your first language. I'm still not understanding your post.
  3. You need something like: foreach ($_SESSION['cart']['content'] as $content) { foreach ($content as $data) { $query = "INSERT INTO orders (id, cartcontent) VALUES (null, '$data')"; mysql_query($query); } }
  4. Not enough information I'm afraid.
  5. Check for errors using an if statement. This is always good practice.
  6. You where trying to assign the result of a foreach to a variable. foreach does not return any result.
  7. You cannot put a foreach in the middle of an echo. Explain exactly what it is your trying to do. It's likely you don't even need the SELECT statements. As it stands, your code makes little sense.
  8. fopen is used to open a file. echo count(glob('C:\\dir\\folder\\proj_ath\\*')); I'm not how well that will work on windows and it will also count directories as files.
  9. This line: $query = "INSERT INTO orders (id, cartcontent) VALUES (null, '". is incomplete. As for your second piece of code. foreach does not return anything. Your code makes little sense.
  10. There should only be 1 hosts file (/etc/hosts) on squeeze, where is this other one located?
  11. Then use ssmtp to connect to (and use) that same mail server for testing.
  12. That is probably easier done from a database too.
  13. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=347057.0
  14. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=347065.0
  15. You really should be setting the responses content type to json before echoing it back. header('Content-type: application/json'); The $ajax function doesn't care where it's data comes from. As for your issue. Have you done any debugging? What does a var_dump of $output produce? What does firebug have to say about what is in data ?
  16. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=347061.0
  17. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=347050.0
  18. You need a domain pointing to the same server the mail server is running on. If you just need this setup for testing I have already explained an easier option.
  19. Creating a new directory for each new user is probably not the best way of doing this. You need to explain in detail what exactly it is your trying to do.
  20. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=347016.0
  21. If develop.lcl is not resolving to 127.0.0.1 there is something wrong with your hosts file entry. try placing it on a separate line: 127.0.0.1 develop.lcl What OS are you using?
  22. That is roughly how it works. Any request your computer makes to some domain will first check the hosts file for this domain and it's related ip. If it find a match, it will request that ip, otherwise it will query whatever name server it is configured to listen to. That siad, you didn't answer my only question.
×
×
  • 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.