I am trying to inplode an array for query use
**************this is the code************
$temp_links_query=mssql_query("SELECT*
FROM test_final_link_doc
WHERE document_number = '$document_number'
");
$counter2=0;
while($row_2=mssql_fetch_array($temp_links_query))
{
$link[$counter2]=$row_2["link_doc"];
$counter++;
}
$new_array = array($link);
$link_doc_string = implode("," ,$new_array);
echo $link_doc_string;
echo "<select name=\"add_link[]\" multiple size=\"10\" maxlength=\"100\">";
$find_add_link_doc=mssql_query("SELECT document_number
FROM final_main
WHERE document_number NOT IN ('$link_doc_string')
");
for some reason when I echo the imploded string it is stil lan array not a string, what am I doing wrong?
thanks