[SOLVED] Variable won't change its value
Posted: Thu Jul 15, 2004 3:29 pm
I have the following code ( removed most of the code for readablility ):
The problem is that the variable $start and $end never change value. Does anyone have a clue of what is wrong? Setting the variables before the while statement like this $start = "test" only makes the code print test several times.
oyse
Code: Select all
$start = "";
$end = "";
while( $columnName = mysql_fetch_array( $columnNames, MYSQL_ASSOC ) ){
/* search all columns for all search strings */
foreach( $this->searchWords as $word ){
}
echo $end . ' ' . $start . '<br />';
$start = "AND ( ";
$end = ")";
}oyse