Jump to content

thescientist

Moderator
  • Posts

    8,682
  • Joined

  • Last visited

Everything posted by thescientist

  1. did you read all the directions?http://www.no-margin.../documentation/ Did you initialize prettyPhoto? <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $("a[rel^='prettyPhoto']").prettyPhoto(); });</script> I would make sure you've gone over all the documentation and FAQ's first before you start trying to hack around. I haven't used prettyPhoto personally, but it's only logical you explore all their options first, to make sure you are following their suggestions for implementation. edit:You also didn't state which version of jQuery you are using, but you can try using live() (<v1.7) or on() (>=1.7) to handle events for elements loaded asychronously.
  2. It seems like it's just as simple as not outputting anything to the page/browser before calling header. Do all your processing/logic at the top of the page, and then determine any user flow afterword. In the logic/processing section, there probably won't be any output. An example of the code causing the issue with the error messages pointing to the line number would be helpful for trying to debug your problem. *by processing, I mean running queries, validating a form, logging a person in, etc.
  3. thescientist

    query string

    it's more a reference to how the URL is constructed.http://en.wikipedia.org/wiki/Query_string it can be used in Javascript as well.http://www.w3schools.com/jsref/obj_location.asp console.log(window.location.search);
  4. it's simple. for some reason in the first one you are adding jquery twice. before and after prettyPhoto. I'm sure that prettyPhoto mentions that it requires jQuery, thus you need to include jquery first. <script type="text/javascript" src="jscript/jquery.js" charset="utf-8"></SCRIPT><script type="text/javascript" src="jscript/prettyPhoto/js/jquery.prettyPhoto.js" charset="utf-8"></SCRIPT>
  5. I don't get how a file name and a search for a filename is supposed to tell us anything about what you need help with, what you are trying to do, or what you are having problems with. If you have a question, just ask it. It's never seemed to stop you before.
  6. what's a searchform.php?
  7. Then you should start reading the tutorials and come back with something that you've at least tried. The links I gave you are basically the essentials of what you want. Like I said, if you don't understand them, then you should really start reading the tutorials as a whole. We are more than willing to help when you have questions about specific things, not just I don't know. I said the first thing you should try is making an HTML form and have it submit to a PHP script. You should at least start with something to show us that you are trying.
  8. I don't think any of us are in any real capacity to know what the best path for your professional advancement should be. Where I work, I'm expected to be able to code (i.e. problem solve) in a few different languages as well as be able to learn/adapt to other ones if and when they are needed. Although I am probably best at Javascript and PHP, I've taken a lot of time to know some of the general theory behind programming in general; like OOP, DRY, TDD, etc because the theory generally applies across the board. I do this because I like to program; I like the challenge and I like to learn new things. Being proficient in one or two languages is OK, most people are. But you have to flexible and adaptive. I think that most employers expect that these days.
  9. thescientist

    Next step?

    well, I think this thread's ready to be locked...
  10. It only really makes sense to combine (say like a Class) if their functionality is related. So for instance, you could group all the "view" related scripts into one. Ultimately, it depends on your application and what makes sense. I mean, you could just throw everything in together, but then you would have one monster script that would be a pain to manage. If you keep your scripts small, logically related, and concise (like Classes offer, and TDD promotes) you may have a couple more hanging around, but you might be able to manage them more easily.
  11. thescientist

    date range

    It doesn't seem logical that today should fall in range does it? Today is only one day. It should only be matched once within whatever range you are checking against.
  12. thescientist

    date range

    i'm not sure how it could be an HTML problem if the PHP is what's generating the HTML.
  13. thescientist

    Next step?

    try and do something on your own for once!!! The examples are right ##### there!http://www.w3schools.com/php/php_mysql_select.asp
  14. thescientist

    Next step?

    yikes. i think you've clearly demonstrated that it is YOU who has a lack of understanding of english.http://dictionary.re...rowse/integrate
  15. If you've reviewed them, then what is your question? What have you tried and what don't you understand? Have you made a form that can submit to a PHP script? If you don't know how to "use" those scripts, then the bigger question is, do you know how to write PHP? Both of those are fairly simple. It sounds like you need to review the PHP tutorials as a whole.
  16. have you tried anything? It would require some javascript. have you read the tutorials?
  17. why don't you do it then? since you already know more than us. I would recommend you check out the documentation of the libraries that you are using first. They probably have forums and the like there that you can "demand" people to help you with on your issue.
  18. have you tried looking the in the tutorials? You take a page out of the forms tutorials and a page out of the mail tutorial and you should get an idea of what to do.http://www.w3schools.com/php/php_forms.asphttp://www.w3schools.com/php/php_mail.asp
  19. thescientist

    date range

    to be clear, a syntax error is when you have an error in the code itself, like missing a semi-colon, or not matching a closing curly brace to an open one. When your code works, but does't produce the desired output, and there are no syntax errors, then you what is called a logic error. Which basically means your implementation is off. Syntax errors are easy to resolve by turning error reporting. Logic errors require debugging to test values and conditionals to see what the code is doing, versus what you think it's doing.
  20. there's nothing wrong with nesting loops. If you want to make multidimensional array's like the OP wants to then, that is one way to to accomplish it. to the OP, I can't see what is wrong with your two cases. Are you saying multiple images are not getting pushed correctly to the images array? From what I can tell it looks fine. Are you sure $back, $images, and $text are what you expect them to be?
  21. thescientist

    Next step?

    Unsurprisingly, you've lost the plot. You've already demonstrated in the last few posts how to use a SELECT query to output information to a browser. Essentially, you've just output the content of a table in a database. I don't get what you don't understand anymore. I swear it's like you just restarted this entire thread all over again....
  22. I'm not sure what you mean. Combobox?
  23. as demonstrated in the tutorialshttp://www.w3schools.com/jsref/met_doc_getelementbyid.asp
  24. even without Firebug it still has error console. or just use Chrome/Safari. They both have a full suite of developer tools built in.
  25. thescientist

    Next step?

    A table in a database is not the same thing as a <table> in HTML.
×
×
  • Create New...