php - Notice: Array to string conversion -


$land = $_post['land']; $resultxax = mysql_query("select * users land = '$land'") or die(mysql_error()); $number=mysql_num_rows($resultxax); echo $number; 

why error?

$land value of multiselect dropdownbox.

<select data-placeholder="choose country..." class="chosen-select" id="e9"multiple style="width:350px;" tabindex="4">     <?php include("../country_dropdown.php");     ?> </select> 

try

$arrayval = join(',',$land);   $resultxax = mysql_query("select * users land in ('$arrayval')") or die(mysql_error()); 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -