Okay so I am creating a simple blog from scratch, with mysql "phpmyadmin" godaddy supplies it, php in dreamweaver, and css and html in dreamweaver also. Just for practice, no real reason. I have a new_user.php file that I can't fix to use my objects. I know how to create a class and its properties, an object essentially.., and instantiate it. But I don't know how to do this in the real world and actually use it for two objects, BlogUser and BlogEntry, I don't even have the blog on the website yet but i do have it to where I cant create new staff users to use the cms i built to edit the website. It's such a simple problem but I don't see any help on it anywhere. I have a bunch more files that connect to this but I cant attach them and it would be impossible to read if i just pasted them all here.new_user.php<?php require_once("includes/session.php"); ?><?php require_once("includes/connection.php"); ?><?php require_once("includes/functions.php"); ?><?php confirm_logged_in(); ?><?php include_once("includes/form_functions.php");

// START FORM PROCESSING if (isset($_POST['submit'])) { // Form has been submitted. $errors = array();

and this is what I think my include.inc file will look likeclass BlogUser { protected $User_name; protected $User_email; protected $User_password; protected $User_signup_date;}class BlogEntry { public $Blog_title; public $Blog_category; protected $Blog_body; protected $Blog_draft_date; protected $Blog_modify_date;}But I don't know where I'm supposed to declare their behaviors or properties. in the same file I assume? any help on the matter would be greatly appreciated. oop with php is a nightmare if you are a noob who solely learned php and sql without the oo portion.

Sounds like you've kind of bitten off a little more than you can currently chew on this one, but don't fret you can get up to speed pretty quickly. There are several ways to approach your particular situation, I recommend going to http://jream.com/learning/videos/php-oop for a quick crash course. Free video lessons there for php oop.

// You need to extend your connection class (if it is a class) so that you can connect to the dbclass BlogUser extends Connection {protected $User_name;protected $User_email;protected $User_password;protected $User_signup_date;

function __construct() { // This initiates your class and you can put variables or call functions in here that always need running when your class is instantiated (if any, or you can leave blank)// For instance connect to the database (I would need to see your connection class to help with this)}