Morn all..
Here is what i am trying to do.. I need to pull all the email addys out of an access db and make it into one long string of emails seperated by semicolons. I have no prob getting the emails out of the db but the concatenation part is boggling me..
Here is what i was thinking.
<?
session_start();
$connection = odbc_connect("intradb", "dbaccess", "dbaccess");
$query = "Select * from CustomerGeneral WHERE $srchtype LIKE '$srchstring%'";
$result = odbc_do($connection, $query);
//----
if ( odbc_fetch_row($result, 1) )
{
do
{and here is where the concat would go..
}
while(odbc_fetch_row($result));
}
else
{
echo "<script language='JavaScript'>window.location.replace('http://www.somepage.com)</script>";
}
?>
Or is it better to put this in some other form? So if anyone could help i would appreciate it.. Thanks much