ok here is my code:
//build client select
$sqlHousehold = "SELECT `homePhone`,
`childrenNo`,
`smoking`,
`babysitter`
FROM `household` WHERE `clientNo` = $clientNo OR `clientNo2` = $clientNo";
//run query
$result = mysql_query( $sqlHousehold, $connection ) or die( "SQL household query error: ".mysql_error() );
and this is the error i get:
SQL household query error:
it doesnt give me an error at all. I've already tried echoing the query to the screen and running the query manually and it works. so it isnt anything with the query itself. can anyone help?