Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. How should we know? Post some relevant code.
  2. trq

    Directories

    You haven't told us what the problem is.
  3. You have your check within your while loop. What do you think the while loop will do when there are 0 rows?
  4. Why are you storing integers in a varchar type? That is your issue.
  5. You need to find out how the slashes are getting there in the first place. What does the data look like in your actual database?
  6. It should work fineWhat results are you getting? What data type is order_id?
  7. Or better yet: $filename = pathinfo($origFileName, PATHINFO_FILENAME);
  8. Make sure that you donate like you said you would, please. There is no pressure or requirement to donate.
  9. You just said you have a variable containing the file name already.
  10. I meant the code that places the selection in the database.
  11. There isn't much that isn't these days. You can include javascript files into your pages using.... <script type="javascript" src="somescript.js"> So in your case you could have.... <script type="javascript" src="yourobjects.js"> <script type="javascript" src="yourcallingcode.js"> There are also numerous libraries around that will let you dynamically load js into other js files, but generally, these are overkill for most cases.
  12. You aven't shown us where $topic_id is defined. But yes, *all* user inputed data needs to be escaped before using it in *any* database query.
  13. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=354175.0
  14. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=354138.0
  15. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=354127.0
  16. You need to loop through all the results within $sqlmeds. The general syntax is: if ($result = mysql_query($sql)) { while ($row = mysql_fetch_assoc($result)) { // $row holds a row from the database } }
  17. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=354134.0
  18. Why don't you describe the problem your having?
×
×
  • 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.