Jump to content

requinix

Administrators
  • Posts

    15,227
  • Joined

  • Last visited

  • Days Won

    427

Everything posted by requinix

  1. Your script (the one doing the INSERT) has to return the ID number. Easiest way would be with JSON because the JSON encoding of a number is just the number. // do stuff // $id = insert ID header("Content-Type: application/json"); echo $id; Then .get() will tell you what that number is. By the way, if you're submitting information to a script like that then you should be doing a POST, not a GET.
  2. Then maybe you should tell us what they are so we can help you fix them.
  3. siblings() Or put the links inside the DIV.
  4. Put it all into a variable instead of echoing it.
  5. Put the logic that generates the XML as a string in some common place. Then use that in both scripts: the one script calls header() and outputs the XML, the other uses it for whatever.
  6. Does tutors/index.php require the city name? If so then you have to put that in the new URL too, or adjust the code so that it isn't necessary.
  7. No. You. Don't. I'm sure you have a file named "download.php" but that has NOTHING to do with your problem.
  8. Because you don't have a file named "download.phphash=...". Like I already told you.
  9. I highly doubt you have a file named "download.phphash=...". What you want is probably URL rewriting.
  10. Uh, I posted something potentially very bad. Try again: </pre> <form action="search.php" method="get" name="search"> " />< XSS
  11. If you set method=get then the query string in the action URL will be overwritten with whatever the form data is. It looks like all you're expecting is the category ID? Put that in a hidden field. </pre> <form action="search.php" method="get" name="search"> " /><
  12. IIRC a layout is essentially a template for views to fill in. So $this would be the view being executed. If you're not sure, print_r() it and see exactly what it is.
  13. MIME type is determined according to file contents. It is magical and you don't really have any control over it. But using that on serialize()d data is nonsensical. And while the data looks textual, application/octet-stream is a more appropriate type, so you're actually getting the "wrong" result more often - yet another reason why you shouldn't do it.
  14. mod_rewrite questions go in the mod_rewrite forum. Moved. Use an [R] flag in both Rules and see where you're being redirected to.
  15. This topic has contracted the Ebola virus and has been quarantined in mod_rewrite. http://forums.phpfreaks.com/index.php?topic=363143.0
  16. What's your code now?
  17. Hint #1: What's line 13?
  18. That's the most popular way, but it's a hassle since you always have to check two columns in the table. And it makes JOINs quite a headache. Another would be to maintain a table of compatibility "groups", then the group recorded with the component directly. table_component_compatibilities * ID * maybe a name or description but not much else table_components * compatibility group, or NULL for incompatible
  19. You can't call a PHP function directly but you can use AJAX to run a PHP script like it were a normal page request.
  20. Then I'd be inclined to throwing in a few tables: component, category, attributes, and attribute values. table_rifles * ID * name * description table_rifle_components - association between rifles and their components * ID * rifle -> table_rifles * component -> table_components table_components - list of all components * ID * name * description * category -> table_component_category * common attribute 1 * common attribute 2 * common attribute 3 table_component_categories - list of all component categories * ID * name table_attributes - list of unique attributes for a component/category * ID * name * category -> table_component_category table_attribute_values - values for the unique attributes of a component * ID * component -> table_components * attribute -> table_attributes * value If you're not sure how to read that, can you give some sample data I can demonstrate with?
  21. Any reason you can't use non-inline CSS for it? Otherwise the only problem is... I guess... not using the right name? Hard to say without seeing what you tried.
  22. All different descriptors? All required?
  23. What do the tables for the different components look like?
  24. Yeah... You'll have to explain what you're trying to do.
  25. This topic has been moved to PHP Regex y no traes musica. http://forums.phpfreaks.com/index.php?topic=363060.0
×
×
  • 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.