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 Editor Help (Dreamweaver, Zend, etc). http://www.phpfreaks.com/forums/index.php?topic=350792.0
  2. I ended up going with the second one and have just finished writing the documentation now. https://github.com/proem/proem/wiki/The-Opt-Component
  3. Your still not checking the query has succeeded before using it's results. This is a terrible habit to get into. Your code should be... if ($result = mysql_query("SELECT id FROM 2012_tournaments WHERE tournament = '$tournament'")) { if (mysql_num_rows($result)) { while($row = mysql_fetch_array($result)) { echo $row['id']; } } }
  4. You have an extra quote which is making your link cutoff after the id= part. echo "<a href='view_designs2.php?id=$id'><img src='../dthumbs/$img' style='text-align: center; width:250px; max-height:250px; border: solid 10px; border-radius: 5px; border-color:tan; -moz-box-shadow: 3px 3px 4px #000;' />";
  5. Again, what does this have to do with Apache's HTTP server? The answer? Nothing. So what is this thread doing here?
  6. This means that your query is failing and your failing to check it succeeds before passing it to mysql_fetch_assoc(). What does mysql_error() display?
  7. I assume the tournament field is a text type then. String need to be quoted in sql. $result = mysql_query("SELECT id FROM 2012_tournaments WHERE tournament = '$tournament'");
  8. What is that full stop doing there?
  9. This has what to do with Apache's HTTP server?
  10. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=350801.0
  11. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=350733.0
  12. Your overriding the $SQL variable so only the address_data table will ver be created. You will need to store your queries in two different variables then execute them both separately.
  13. Your command may be malformed. Save it into a variable and echo it to see what it actually looks like: $cmd = escapeshellcmd("/home/evidian/utils/getAccount ".escapeshellarg($accountBase)." ".escapeshellarg($primaryUser)." ".escapeshellarg($secondaryUser)); echo $cmd; $result = exec($cmd); echo $result; Aslo, make sure you have error reporting enabled.
  14. That is a much nicer looking implementation. Unfortunately, I'm not sure I can get it working. I would need $this->configure() to return the options ready for use. I will have a dig around though and see what I can get working. There is an initial prototype available here if you'd like to have a look.
  15. So? The examples won't be hard to apply to your problem.
  16. What are the permissions on /home/evidian/utils/getAccount ?
  17. Do you understand how mysql_pconnect() works?
  18. You should also be aware that Javascript executes on the client (the browser) while PHP executes on the server. It stands to reason therefor that you cannot execute php within a Javascript function. If you want to go down that path you can look into Ajax, but without knowing the difference between server side and client sode programming it's not going to be something that can be easily described in a single forum post / reply.
  19. You should post the code that "doesn't work" and a description of what "doesn't work" actually means. You should also post code in tags like everybody else here does.
×
×
  • 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.