Function AddProducts($aTitle, $aDescription, $aPrice, $aQty, $aPhoto) { try { $stmt = $this->pdo->prepare("INSERT INTO products(title, price, description, qty, photo) VALUES(:title, :price, :description, :qty, :photo)"); if(!$stmt){ $err = $this->pdo->errorInfo(); throw new RuntimeException('PRODUCT INSERT FAILED: '. $err2); } $stmt->bindValue(':title', $aTitle, PDO::PARAM_STR); $stmt->bindValue(':description', $aDescription, PDO::PARAM_STR); $stmt->bindValue(':price', $aPrice, PDO::PARAM_INT); $stmt->bindValue(':qty', $aQty, PDO::PARAM_INT); $stmt->bindValue(':photo', $aPhoto, PDO::PARAM_STR); $stmt->execute(); }catch (PDOException $e) { echo $e->getMessage(); } } $addProducts = $database->AddProducts('Ford Mustang', 'This is a Descriptiom', 299.99, 1, 'images/includes/5. Jpg').
1 noticed the same, seems logical. – DrColossos Jul 16 '10 at 14:12 Thank you so much, that was perfect. Sorry still learning.
– thatmediaguy Jul 16 '10 at 14:46.
$addProducts = $database->AddProducts('Ford Mustang', 'This is a Descriptiom', 299.99, 1, 'images/includes/5. The database class and database call function work. Also if you spot anything retarded please point it out, I am trying to learn.
Do you really have this property in your class? Or maybe you need something like this? Throw new RuntimeException('PRODUCT INSERT FAILED: '.
$addProducts = $database->AddProducts('Ford Mustang', 'This is a Descriptiom', 299.99, 1, 'images/includes/5. Terms of service. Not the answer you're looking for?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.