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

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -