Expand|Select|Wrap|Line Numbers
- $sql1 = "select cust_id from customer where comp_name = '$compname'";
- $result = $DB->query($sql1);
- $result->fetchInto($row);
- $sql = "select expirydate from customer l,domain s where l.cust_id = '$row[0]' and s.domname = '$domname'";
the problem here is that i need to combine these two queries into a single query to obtain the expiry date.
i am fairly new to this.