Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. I'm not sure what you are trying to do but all you are doing is writing the header() call to the file you are creating. Your code makes no attempt to actually redirect.
  2. Think about what you are doing. Your query uses a WHERE clause that means it will only ever return a result if the username and email match, why are you checking again to see if they match? If your query fails to return a result, your 'while' loop will never execute because there is no result returned from your query.
  3. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=310031.0
  4. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=310184.0
  5. You have an extra 'and' after your first 'where'.
  6. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=310181.0
  7. trq

    pdf link

    Not with html. You would need to use a server side language like php to force a download. There is an example of such a script within the FAQ/Code Snippet Repository.
  8. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=310162.0
  9. Your function could still be refactored.... function testReturnId($year, $model) { return mysql_query("SELECT * FROM `tbl_svc_auto` WHERE `auto_model` = '".$model."' AND ".$year." BETWEEN `auto_year` AND `auto_year_high` ", $this->connection); } Does exactly the same.
  10. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=310074.0
  11. Your using strange quotes around $querystring
  12. You would need to UPDATE the existing row, not INSERT into a new one.
  13. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=310049.0
  14. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=310048.0
  15. trq

    help

    Theres a decent free book in my signature (Hudzilla).
  16. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=310052.0
  17. Your function is fubar. Variables are not interpolated within single quotes so your query is broken, and I'm really not sure what your trying to do with your return values. You really shouldn't be mixing and matching between some database object and the pure mysql* functions outside of it either. Either make the database object feature complete or don't bother with it.
  18. Yes it is true. Microsoft have gone ahead and made there own extension for this. http://www.microsoft.com/sqlserver/2005/en/us/php-driver.aspx I believe what has happened is that because MS went ahead and started developing there own, work stopped on the open source version. I had to jump through many hoops at work to get MSSQL working with PHP. Mostly because we used the Zend framework which at the time didn't support MS's new driver.
×
×
  • 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.