fix table name
This commit is contained in:
parent
24b2c1622c
commit
ba9bb6bac4
@ -4,7 +4,7 @@ final class ApprModel {
|
|||||||
public function getRecipeApprs($I_recipe_id)
|
public function getRecipeApprs($I_recipe_id)
|
||||||
{
|
{
|
||||||
$O_model = Model::get();
|
$O_model = Model::get();
|
||||||
$stmt = $O_model->prepare("SELECT * FROM APPPRECIATION WHERE ID = :recipe_id");
|
$stmt = $O_model->prepare("SELECT * FROM APPRECIATION WHERE ID = :recipe_id");
|
||||||
$stmt->bindParam("recipe_id",$I_recipe_id);
|
$stmt->bindParam("recipe_id",$I_recipe_id);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
return $stmt->fetch();
|
return $stmt->fetch();
|
||||||
@ -14,7 +14,7 @@ final class ApprModel {
|
|||||||
{
|
{
|
||||||
$O_model = Model::get();
|
$O_model = Model::get();
|
||||||
$stmt = $O_model->prepare("
|
$stmt = $O_model->prepare("
|
||||||
INSERT INTO APPPRECIATION (COMMENT,SCORE,DATE,AUTHOR_ID,RECIPE_ID) VALUES (:comment, :score, :date, :author_id, :recipe_id)
|
INSERT INTO APPRECIATION (COMMENT,SCORE,DATE,AUTHOR_ID,RECIPE_ID) VALUES (:comment, :score, :date, :author_id, :recipe_id)
|
||||||
");
|
");
|
||||||
$stmt->bindParam("comment",$S_Comment);
|
$stmt->bindParam("comment",$S_Comment);
|
||||||
$stmt->bindParam("score",$I_score);
|
$stmt->bindParam("score",$I_score);
|
||||||
@ -29,7 +29,7 @@ final class ApprModel {
|
|||||||
public function deleteAppr($I_appr_id)
|
public function deleteAppr($I_appr_id)
|
||||||
{
|
{
|
||||||
$O_model = Model::get();
|
$O_model = Model::get();
|
||||||
$stmt = $O_model->prepare("DELETE FROM APPPRECIATION WHERE ID = :appr_id");
|
$stmt = $O_model->prepare("DELETE FROM APPRECIATION WHERE ID = :appr_id");
|
||||||
$stmt->bindParam("appr_id", $I_appr_id);
|
$stmt->bindParam("appr_id", $I_appr_id);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
}
|
}
|
||||||
@ -37,7 +37,7 @@ final class ApprModel {
|
|||||||
public function getApprByID($I_appr_id)
|
public function getApprByID($I_appr_id)
|
||||||
{
|
{
|
||||||
$O_model = Model::get();
|
$O_model = Model::get();
|
||||||
$stmt = $O_model->prepare("SELECT * FROM APPPRECIATION WHERE ID = :appr_id");
|
$stmt = $O_model->prepare("SELECT * FROM APPRECIATION WHERE ID = :appr_id");
|
||||||
$stmt->bindParam("appr_id", $I_appr_id);
|
$stmt->bindParam("appr_id", $I_appr_id);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user