if(substr_count($insertsql,"(")>3 and $pollid==XX) { eval("standarderror(\"You can just vote 3 options.\");"); } else if(substr_count($insertsql,"(")>5 and $pollid==yy) { eval("standarderror(\"You can just vote 3 options.\");"); }