www.webdeveloper.com

Search:

Type: Posts; User: Jerico

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: unknown syntax

    by Jerico
    Replies
    4
    Views
    648

    thanks :)

    thanks :)
  2. Thread: unknown syntax

    by Jerico
    Replies
    4
    Views
    648

    unknown syntax

    I keep seeing this syntax, but I don't know what's it's called or what it does:


    thing == 0 ? "a" : "b" + thing

    can someone please explain this?

    thanks
  3. Replies
    0
    Views
    1,836

    constrained div proportions in fluid layout

    I have a div container that i want to resize with the browser to a max/min width and height.

    Let's say the maximum width is 960px and the minimum is 500px.

    How can I have the height of this...
  4. Replies
    3
    Views
    1,628

    Comparing a value to SET

    I have three possible values being stored in a SET column type. I was wondering how you can use PHP to compare if a variable matched any one or all values in the SET.
  5. Replies
    8
    Views
    2,298

    could you elaborate?

    could you elaborate?
  6. Replies
    8
    Views
    2,298

    I can see why this query returns six results (if...

    I can see why this query returns six results (if there are 3 messages in the system where I'm the sender or receiver), but is there a way to just return 3 results so I don't have to have an IF in...
  7. Replies
    8
    Views
    2,298

    I should mention that I'm new to JOINS and any...

    I should mention that I'm new to JOINS and any advanced usage of mySQL.

    What I'm trying to achieve is a list of all messages where you as the user is a sender or reciever, but I want to return...
  8. Replies
    8
    Views
    2,298

    I don't understand what this statement is doing....

    I don't understand what this statement is doing. When I try to echo this result, I get 2 rows for every message = one with the sender name and one with the receiver name. So if there is three...
  9. Replies
    8
    Views
    2,298

    Help with simple messaging system

    I have 2 tables: 'users' and 'messages'

    the 'messages' table stores the user ID for the sender, and the receiver.

    If you log in, your user ID is stored in a session. When you go to the...
  10. Replies
    8
    Views
    2,114

    Basically I just want to show the person I'm...

    Basically I just want to show the person I'm corresponding with in the message lists.
  11. Replies
    8
    Views
    2,114

    Having trouble I have a 'messages' table that...

    Having trouble

    I have a 'messages' table that stored foreign keys for 'user_from' and 'user_to'

    If I log in as myself, I need to show a list of messages that were either addressed TO me or FROM...
  12. Replies
    8
    Views
    2,114

    actually - is it possible to have a couple...

    actually - is it possible to have a couple conditionals"


    select
    m.body,
    m.time,
    u.name

    from
    messages m
  13. Replies
    8
    Views
    2,114

    yup - that'll do it - thanks!

    yup - that'll do it - thanks!
  14. Replies
    8
    Views
    2,114

    mysql query across different tables

    I need to do a comparison across different tables in the same data base. It's a simple messaging system. The messages store the user ID as a foreign key. How to I pull the list of messages from the...
  15. Replies
    2
    Views
    1,323

    How to empty an array?

    I can't seem to find a simple way to clear all the contents within an array. Is there an easier way than to have to loop through it's length and 'pop' each string??

    thanks
  16. Replies
    6
    Views
    1,456

    I wish I understood what was being suggested here...

    I wish I understood what was being suggested here :(

    I understand that when the form is submitted all the fields get posted. But what is the logic I use to track the ones that weren't "expected"?...
  17. Replies
    6
    Views
    1,456

    Not sure if i understand your reply. See, how...

    Not sure if i understand your reply.

    See, how can I place my expected form variables in an array, when i have no idea how many form elements wthere will be ahead of time??

    When the user clicks...
  18. Replies
    6
    Views
    1,456

    counting user added form fields

    I have a form where the user can add as many new file fields as they need to. I'm using jQuery to add the new input fields (each new section consists of 3 fields which describe a file).

    When the...
  19. Replies
    1
    Views
    874

    OOps - I see what I did wrong when i posted this...

    OOps - I see what I did wrong when i posted this question!

    Ok - I'll ask another question in it's place.


    How should I store dates if i want to do calculations with them? Should I store them...
  20. Replies
    1
    Views
    874

    trouble storing date in DATE field

    When I try and store a date in my DATE field as yyyy-mm-dd, it just gets added as 0000-00-00 when I view it with PHPMyAdmin. I'm not sure what i'm doing wrong :confused:


    INSERT INTO projects...
  21. Remove individual variables from a session?

    I was wondering if it is possible to remove individual variables from a session. I have a series of forms where I'm storing the values of the forms in the session so the form will display the last...
  22. Replies
    2
    Views
    1,005

    Thanks for the reply. I feel like an a serialized...

    Thanks for the reply. I feel like an a serialized array is the best solution to avoid a ton of extra fields everywhere. I'm just trying to keep this DB as relational and clean as possible - maybe...
  23. Replies
    2
    Views
    1,005

    MySQL Storing variable user-gen fields

    I'm trying to wrap my head around some relational DB logic:

    I have for different forms that the user will fill out - all data being stored in a DB. However, one of the forms has a field type that...
  24. Replies
    27
    Views
    2,747

    right, that's why the proper way to do this would...

    right, that's why the proper way to do this would be append the new elements to the DOM.
  25. Replies
    27
    Views
    2,747

    had to reset 'result' inside the function: ...

    had to reset 'result' inside the function:


    <script>

    var face0=new Image()
    face0.src="d1.gif"
    var face1=new Image()
    face1.src="d2.gif"
    var face2=new Image()
Results 1 to 25 of 129
Page 1 of 6 1 2 3 4
HTML5 Development Center



Recent Articles