Advanced Search

Search:

Type: Posts; User: traq; Keyword(s):

Page 1 of 20 1 2 3 4

Search: Search took 0.10 seconds; generated 8 minute(s) ago.

  1. Replies
    1
    Views
    230

    1) One of the major reasons to use a prepared...

    1) One of the major reasons to use a prepared statement in the first place is to separate sql code from user data. Don't put the $keyword directly in the query: this makes your code vulnerable to...
  2. You're looking for the Google Maps API...

    You're looking for the Google Maps API.

    For the other stuff, like John said, it's really unclear what you are asking.
    If you have specific questions, that you can explain in not-vague terms,...
  3. no prob. I would suggest, however, that you move...

    no prob. I would suggest, however, that you move towards the mysqli or PDO extensions as soon as possible. ext/mysql is deprecated and has not been recommended for new code since 2004. It's old,...
  4. Did you do your own installation? Found this on...

    Did you do your own installation? Found this on s/o.
  5. Thread: Help with array

    by traq
    Replies
    8
    Views
    483

    Resolved nuqneH? tlhIngan Hol Dajatlh'a'? I tried...

    nuqneH?
    tlhIngan Hol Dajatlh'a'?


    I tried that exact script; it runs fine, with no errors.


    You might try putting the semicolon on the line below, i.e.:
    print <<< HTML
    <blockquote...
  6. Thread: Help with array

    by traq
    Replies
    8
    Views
    483

    Resolved That last part is a special kind of string called...

    That last part is a special kind of string called a HEREDOC. It starts with <<< and an arbitrary word ("HTML", in this case) and ends with that same word, at the beginning of its own line, and with...
  7. Thread: Help with array

    by traq
    Replies
    8
    Views
    483

    Resolved John's answer is what you asked for, but I might...

    John's answer is what you asked for, but I might suggest a much simpler (and more efficient, more robust) version instead of simply modifying the existing script:


    <?php

    // use an array of...
  8. Replies
    1
    Views
    154

    What is your actual problem? We can't guess. ...

    What is your actual problem? We can't guess.

    Your question is unclear.
    Please provide more information, and be as specific as possible.
    What do you want to accomplish? What have you already...
  9. Thread: SQL with PHP

    by traq
    Replies
    5
    Views
    698

    Alright, no problem. Let's start with the...

    Alright, no problem.

    Let's start with the database itself. First, you need to know your DB hostname, username, password, and the name of the database itself. You should have all of these from...
  10. Thread: SQL with PHP

    by traq
    Replies
    5
    Views
    698

    Please use the forum's bbcode tags and indent...

    Please use the forum's bbcode tags and indent your code to make it more readable:

    for php code............
    <?php /* code goes here */ ?>
    for html...............
    <!-- markup goes here...
  11. Thread: SQL with PHP

    by traq
    Replies
    5
    Views
    698

    Images (files), PHP variables, and Databases are...

    Images (files), PHP variables, and Databases are all very separate things.

    We would probably need to see the gallery script you are using if you expect to integrate this with what you are already...
  12. Thread: funny/geeky pics

    by traq
    Replies
    59
    Views
    54,721

    not funny funny, but well done...

    not funny funny, but well done.
  13. Replies
    7
    Views
    546

    hmm… I had assumed that it actually was a string...

    hmm… I had assumed that it actually was a string (e.g., a raw HTTP response) and I added quotes around it when I tested. However, I did my testing with PHP's native functions—I see now that it does...
  14. Replies
    3
    Views
    1,642

    You must provide relevant code if you expect to...

    You must provide relevant code if you expect to get help. Making us guess will not help solve your problem.

    In general terms, the date needs to be a field in the table, not its own table. It...
  15. Replies
    7
    Views
    546

    That's a JSON string encoded as a JSON string...

    That's a JSON string encoded as a JSON string (i.e., it's double-encoded). You'll need to parse it again.


    var oInvoice = $.parseJSON(data);
    var gInv_Num = $.parseJSON( oInvoice[0].invNum );
    ...
  16. Replies
    8
    Views
    626

    Your original post (this one too) was...

    Your original post (this one too) was automatically moderated by the forum's anti-spam software. It happens once-in-a-while; just be patient. I've approved both posts and combined them into this...
  17. Replies
    3
    Views
    1,642

    That's not exactly a question…? What code have...

    That's not exactly a question…?

    What code have you tried? What problem did you encounter — what happened, compared to what you expected to happen?

    It will likely be necessary to share your...
  18. Resolved no problem. self-teaching is good. If your...

    no problem. self-teaching is good.

    If your question has been answered, please mark your thread "resolved":
    On your original post (post #1), click [edit], then click [go advanced]. In the...
  19. Resolved I assume you mean background-color and...

    I assume you mean background-color and gradients...?

    What, specifically, have you tried? It would be helpful to know if you've had problems with something that should work, vs. not yet figuring...
  20. "looks okay" is not very helpful information. ...

    "looks okay" is not very helpful information. You need to describe the specific problems you're having, and what and how you want things to look. Screenshots (with notes) might be helpful.
  21. Replies
    2
    Views
    630

    works for me (http://jsfiddle.net/traq/6CvH3/)...

    works for me too.

    As a side note, *display: inline is not necessary and should be removed unless you need to support IE7 and below (and even then, you would also have to give the divs...
  22. One extra equals sign is not a significant...

    One extra equals sign is not a significant difference in file size. Are you minifying your scripts and html markup? That would be a much larger bandwidth savings.

    Generally speaking, triple...
  23. Replies
    5
    Views
    1,213

    umm... dunno. but here's one that works...

    umm... dunno. but here's one that works.
  24. Thread: Grabbing Text

    by traq
    Replies
    1
    Views
    473

    I'm not sure what you mean. Are you using some...

    I'm not sure what you mean. Are you using some sort of javascript? are there hyperlinks in the list items?

    Please show us all the relevant code, and describe what you are doing, what you expect...
  25. Thread: assigning URL

    by traq
    Replies
    3
    Views
    802

    You could add start /max http://example.com to...

    You could add start /max http://example.com to the end of the batch file (though that wouldn't "wait" until you actually closed the window).

    I don't know how you might trigger it on the window...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4