Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Where exactly are you stuck?
  2. Do you know how to create a drop down in html?
  3. PHP is generally used to output html. All you need to do is make that html create a drop down.
  4. This is cause by simply passing the result of mysql_query to mysql_fetch_assoc without first checking it succeeded. The general syntax used for a select should be: if ($result = mysql_query($sql)) { if (mysql_num_rows($result)) { // $result contains data } else { // no results found } } else { // query failed. }
  5. This topic has been moved to Other. http://www.phpfreaks.com/forums/index.php?topic=341444.0
  6. This kind of system is very easy to implement using simple patches, which is IMO what SMF should be using instead of there custom search and replace framework. The only real problem with this method is that once you have installed a plugin that replaces existing code, another plugin that looks for that code won't be able to find it.
  7. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=341429.0
  8. trq

    CURL

    You haven't given us enough information about your actual issue.
  9. trq

    CURL

    What is the question?
  10. You will need to fetch the file (you can use file_get_contents for this), parse it using either regex (see preg_match) or the dom extension (see dom), then save your results to a database.
  11. You would be better off doing this server side using php or something.
  12. The approach you are taking is pretty common. I think you misunderstand what a hacker is. 'Hacker' is just another name for a (good) programmer. But yeah, there is nothing stopping anyone going to postloginpage.html unless you make efforts to stop them. You can use sessions to track a user and check if they are logged in.
  13. Sounds to me like your looking for a VCS. Git is a good example.
  14. So you want us to write you another one? What don;t you understand? What code have you tried? What errors are you getting?
  15. The dom extension is probably a good place to start. http://php.net/dom
  16. You'll want to do a few tutorials on JOINs.
  17. function foo($something) { echo $something; } foo('this is something'); See functions.
  18. So does Eric Raymond: http://catb.org/~esr/faqs/hacker-hist.html
×
×
  • 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.