Simple MySQL Command

Discussion in 'MySQL' started by Pudge1, Feb 8, 2010.

  1. #1
    Can someone quickly write me up a MySQL command? I already have it set up to connect to the database and all that. All I need it to do is from table 'Vaults' needs to search for Vault_ID from $var1 and see if $var2 matches up with the Combo column name and if it does gets whatever is in column Contents from that row.
     
    Pudge1, Feb 8, 2010 IP
  2. systematical

    systematical Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to learn mysql and not ask people to do work for you. This is a place for troubleshooting not doing.

    http://www.php.net/manual/en/function.mysql-query.php
    http://www.php.net/manual/en/function.mysql-fetch-assoc.php

     
    systematical, Feb 9, 2010 IP
  3. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #3
    I already figured it out for myself, thanks anyway. I do know MySQL but whatever I kept trying wouldn't work and I couldn't troubleshoot it.
     
    Pudge1, Feb 9, 2010 IP