I am doing a query as follows
select id, prefix, fname, lname, suffix, city, state, zip, bio, votes from stateChair_nominees where id=$candidate_id
My candidate id is equal to the post method.
$candidate_id = $_POST;
I keep getting this error..
select id, prefix, fname, lname, suffix, city, state, zip, bio, votes from stateChair_nominees where id=Array" Invalid query1Unknown column 'Array' in 'where clause
I am getting the invalid query1 error because it goes to that on a die
$result_candidate = mysql_query($sql_candidate, $link) or die("Invalid query1". mysql_error());
Why is my id saying equal to array?
where id=Array"
I want my sql statement to be equal to each id upon the vote. How do I get my query to do this?
Thanks :)