1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

UNKON-php

Discussion in 'PHP' started by masterofzoo, Sep 28, 2011.

  1. #1
    I want php code to select variables from database wiche have many conditions..........how is that?
     
    Solved! View solution.
    masterofzoo, Sep 28, 2011 IP
  2. fairuz.ismail

    fairuz.ismail Peon

    Messages:
    232
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
  3. #3
    Do you want to say you want to extract data from database which met with some condition? if yes then you can do it like following :

    $result = mysql_query(select name from tablename where salary > 2000 and age <30);

    above query will return name of all persons whose salary is more then 2000 and age is less then 30.


    Sheetal
     
    SheetalCreation, Sep 28, 2011 IP
  4. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #4
    you need to build the SELECT query then execute it with mysql_query()..
     
    JohnnySchultz, Sep 29, 2011 IP
    Raj Kumar likes this.