ok,
this is what i am getting. I can get it to work ONE row at a time f i use the LIMIT attribute.
i am trying to use a for statement to count up a limiter number but that doesnt work.
the only time i am ablke to get this to work is if i manually enter the # into the first LIMIT attribute (ex. LIMIT 6,1)
any ideas?
thanks
#####################
#####################
$brand_array = array();
#####################
$sqlB = "SELECT name FROM brands ORDER by 'name' ASC";
$resultB = mysql_query($sql😎;
while ($rowB = mysql_fetch_array($result😎)
{
$name = $rowB["name"];
$brand_array[] = $name;
}
#####################
$click = 0;
$sqlNUM = "SELECT id,title FROM ITEMS";
$resultNUM = mysql_query($sqlNUM);
//$rows = mysql_num_rows($resultNUM);
$rows = 10;
for ( $loopD=0; $loopD <= $rows; $loopD++ )
{
#####################
$sql = "SELECT id,title FROM ITEMS ORDER by id ASC LIMIT $loopD,1";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
$id = $row["id"];
$title = $row["title"];
##############
while ($rowA = each($brand_array))
{
$a_string = $rowA["value"];
$s_check = strpos($title,$a_string);
if ($s_check === 0)
{
$tmp_str = str_replace($a_string,"",$title);
$titleD = trim($tmp_str);
echo $titleD;
$sqlD = "update ITEMS SET title = '$titleD' where id = '$id'";
$sql_result_brandD = mysql_query($sqlD) or die ("count update title!");
}
}
######################
}
##################