Visa ett inlägg
Oläst 2016-10-24, 11:01 #2
nim nim är inte uppkopplad
Medlem
 
Reg.datum: Oct 2014
Inlägg: 248
nim nim är inte uppkopplad
Medlem
 
Reg.datum: Oct 2014
Inlägg: 248
Kod:
<?php

if ($manufacturer_purl == false) {
   echo $stock . '</li>';
}

$ch = curl_init($manufacturer_purl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$text = curl_exec($ch);
$mpss1 = strpos($text, $mpss1);
$mpss2 = strpos($text, $mpss2);
if ($mpss1 == true) {
   echo $mpssr;
}
elseif ($mpss2 == true) {
   echo $custom_desc;
}
elseif(!$manufacturer_purl && !$mpss1 && !$mpss2) {
   echo $stock;
}
else {
   echo "inget finns" ;
}
Något sånt här?

Försök undvika ?>
<?php

flera gånger i kod då det oftast skapar WPOD ( White-page of death )
nim är inte uppkopplad   Svara med citatSvara med citat