0

php ivを使用してショッピングカートを作成しようとすると、クラスの他の生徒と話しました。彼らは、何らかの理由でgetProductByTypeIdクエリに問題があると考えています...データベースからProductID以外のすべてを取得します。

以下は私の機能です...

function getProductsByTypeID($TypeID){

//pull in global connection
global $connection;

//execute query to select all product types
$query="select * from product where TypeID = ".$TypeID;
$result = mysql_query($query, $connection);
testQuery($result);

//return list of customers
return $result;
}
4

0 に答える 0