PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- class news {
- private $author;
- private $title;
- private $short;
- private $full;
- const DB_HOST = 'localhost';
- const DB_USER = 'site';
- const DB_PWD = 'site';
- const DB_NAME = 'site';
- function addToDataBase($author, $title, $short, $full){
- author,
- short,
- full,
- date)
- VALUES ('$this->title',
- '$this->author',
- '$this->short',
- '$this->full',
- }
- }
- ?>