I'm trying to construct a mySQL query that selects a few bits of information from some specific rows in a table (heh, is that generic enough for ya?). The query looks like this right now:
Code: Select all
$query_certs_per_rep = "select sum(price) from certs where rep_id=$current_rep_id";
$result_certs_per_rep = mysql_query($query_certs_per_rep)
or exit(mysql_error());