I am getting a "Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given" with the following code:
$field_sql = 'SHOW FIELDS FROM '.$dbtable.' WHERE FIELD = '.$field;
$field_q = mysql_query($field_sql,$MJCONN);
$field_r = mysql_fetch_assoc($field_q);
}while($field_r = mysql_fetch_assoc($field_q));
I think it has to do with brackets but I have not been able to solve the problem, any help would be very welcome.