SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: i need them

  1. #1
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    i need them

    how get value attribute from mysql and set another attribute in same table

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,336
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    how to get value attribute --
    Code:
    SELECT foo FROM daTable
    how to set another attribute --
    Code:
    UPDATE daTable SET bar = 937
    sorry if this doesn't fit your scenario, but you really didn't give very much information in your question at all
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    tanks i know that i need mysql with if statement in php give value for another attribute

    like i have field grade and assessment

    i need get grade cnvert to assessment (A+,A,...etc)

  4. #4
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,336
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    please do a SHOW CREATE TABLE for your table

    and then give some sample rows, along with a better explanation of what you want...
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •