问题描述:

I'm the data with the following code.

$parametre = mysql_query("select * from faturaparametre where musteri='$musteri' and

urungrubu='$urungrubu' and tasimasekli='$tasimasekli' and donem<= '$tarih' and donem2>= '$tarih' and teslimnoktasi='$teslimnoktasi1' and $agirlik BETWEEN min and max");

while($parametresonuc = mysql_fetch_array($parametre)) {

$fatparametreid = $parametresonuc[id];

$ynadresno = $parametresonuc[yuklemenokta];

Skip this procedure if you do not have the following variables: the next one in the list if there is no break in the last one in the search process, how can I do this?

 $adresil1 = mysql_query("select * from adresler where id='$yuklemenokta'");

$adressonuc1 = mysql_fetch_array($adresil1);

$yuklemeadresno = $adressonuc1[adresno];

$yuklemeil = $adressonuc1[noktail];

$yuklemeilce = $adressonuc1[noktailce];

$yuklemeilb = "il".$yuklemeil;

This code does not run more than one priority finding. and do not find exactly the same thing

if(eregi($ynadresno, "$yuklemeadresno")) {

$ftid = $fatparametreid;

}elseif(eregi($ynadresno, "$yuklemeilce")) {

$ftid = $fatparametreid;

}elseif(eregi($ynadresno, "$yuklemeilb")) {

$ftid = $fatparametreid;

}else {

}

网友答案:

The array keys should be quoted,

$yuklemeadresno = $adressonuc1['adresno'];
$yuklemeil = $adressonuc1['noktail'];
$yuklemeilce = $adressonuc1['noktailce'];
$yuklemeilb = "il".$yuklemeil;
相关阅读:
Top