This function cannot be used with any queries that return results. This includes SELECT, OPTIMIZE TABLE, etc.
curl_setopt($ch, CURLOPT_HEADERFUNCTION, array('ClassName', 'CallbackMethod'));
и/илиcurl_setopt($ch, CURLOPT_HEADERFUNCTION, 'ClassName::CallbackMethod');
foreach ($arItem["DETAIL_PICTURE"] as $arWork){
if( $arWork == 'нужно мне' ) {
echo "Во мне живёт ".$arWork." !<br>";
}
}
$rows = 0;
while ($res = mysql_fetch_assoc($dbProject)) {
$rows++;
// code
}