2011-05-06 30 views

回答

0

例如...

$sql = "select * from Firmname"; 
     if($materiaux != '') 
     $sql.= " where Firmnamelike '".mysql_real_escape_string($Firmname)."%'"; 
     $sql .= " order by FirmnameASC "; 
     $result = $this->sqlQueryArray($sql); 
     return $result; 

//在阿賈克斯,

if(trim($Firmname) != '') 
       $final_result = ucfirst(($Firmname))."|".$Firmname_id."|".$PersonName."|".$MobileNO; 
      $final_result .= "\n"; 
      echo $final_result; 
+0

先生ü可以給我完整的例子 – Ravin 2011-05-10 12:05:48