run time write mysql query and excute it.

Discussion in 'PHP' started by dineshsingh1984, Aug 28, 2012.

  1. #1
    I want to write query at run time on tabels.php (not in this file when tabels.php is run or open in browser) and excute this query onclick button.

    plz help me..............
     
    dineshsingh1984, Aug 28, 2012 IP
  2. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #2
    u can use a post or get method for a form within that file and execute it na
     
    chandan123, Aug 28, 2012 IP
  3. InstaCoders

    InstaCoders Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I would suggest using post versus get. Reason being is that while it's still possible to do by any person who's good
    with playing around with people's html codes and such, using GET is so much easier to do anything to screw up your
    script or sql injections if not coded properly.

    using the method="post" in your form makes it a little more difficult to do. Think of it as a 'deterrent'
     
    InstaCoders, Aug 28, 2012 IP
  4. dineshsingh1984

    dineshsingh1984 Active Member

    Messages:
    154
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    I want to function like that phpmyadmin provide in sql section (here type code and click on ok button and its excute)

    plz tell me..........
     
    dineshsingh1984, Aug 29, 2012 IP
  5. mastjaat

    mastjaat Member

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #5
    what is post...............
     
    mastjaat, Aug 29, 2012 IP
  6. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #6
    for that u need to make use of ajax method and implement :rolleyes:
     
    chandan123, Aug 30, 2012 IP