GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 03-Dec-2006, 09:36
questions questions is offline
New Member
 
Join Date: Sep 2006
Posts: 2
questions is on a distinguished road

php class


I am trying to write an OOP for my project and i am get stuck on this. Can anyone give me some advise?

PHP Code:

<?php
require_once ('class.UserAddress.php');

class User{
public $id;
public $name;
public $username;
public $password;


private $arrayAddress; //An array of UserAddress
//DO I NEED TO DO ANYTHING HERE?

ON THE USERADDRESS class ALREADY DEFINE EVERYTHING LIKE
public function __construct
public function get and set ID; )
public function get and set street1;$street1;
public function get and set city;$city;
public function get and set state;$state;
public function get and set zip; $zip;

}

?>

Last edited by LuciWiz : 03-Dec-2006 at 12:38. Reason: Please insert your Php code between [php] & [/php] tags
 
 

Recent GIDBlogProblems with the Navy (Officers) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Box Class, need help again :( TransformedBG C++ Forum 7 13-Nov-2006 15:11
C++ class -- Please help vnca_1 C++ Forum 3 14-Jun-2006 12:31
a tester class and then some. postage Java Forum 1 06-May-2006 15:48
Error C2146: syntax error : missing ',' before identifier 'C4' mattchew008 C++ Forum 2 19-Dec-2004 06:06
Are there any php bbcode class can download? snk MySQL / PHP Forum 1 05-Apr-2004 16:45

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:57.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.