非オブジェクトでメンバー関数combinestring()を呼び出すときに問題が発生しました。
**Index.php**
inlcude("string.php");
calldata('usa');
**string.php**
$a=new a();
funciton calldata($val){
$st1="select a from table 1 where country=".$a->combinestring($val);
return $st1;
}
**Class A**
function combinestring($abc){
Return "'".$abc."'";
}
$ a-> combinestring($ val);がわからない
この問題を解決する方法。
よろしくお願いします