Function Problem
Posted: Mon Sep 04, 2006 12:18 am
twigletmac | Please use
twigletmac | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Dear Friends :
I have a problem i want to create a function automatically add, save ,edit, delete, and to view in mysql database but the problem is there is no result i found in my program
Here is my code:Code: Select all
<?php
class person(){
var $Index,$Username,$Password,$Administrator,$Type of Person,$FirstName,$tussenvoegsel,$Lastname,$Private address,$Postal Code,$City,$Phone private,$Mobile,$Company Name,$Company address,$Postal code company,$City company,$keywords,$Picture;
function getAllPersons(){
//returns an array with all persons records that we have
}
function getSelectedPersons($field,$value){
}
function updatePerson(){
$query="UPDATE personstable fields(name, password) values(this->name, this-.password)";
execute_query($query);
}
function saveNewPerson(){
}
}
class meeting(){
var $index,$title,$date,$typeofmeeting,$Location short,$Speaker,$Introduction,$SpeakerBio,$Agenda,$Venue,$Confirmationtext;
function getAllMeetings(){
}
function getSelectedMeetings($fields,$value){
}
function updateMeeting($key){
}
function SaveNewMeetings(){
}
function registerforMeeting(){
}
function SendNewMeeting($E-mailAddress){
}
function sendReminderEmail($person){
}
}
class attendance(){
var $Index,$Name,$Members,$Member Number,$Phone,$Phone Mobile,$E-mail Address;
function register($person){
}
function getRegistration($meetingkey){
}
function getNonRegistered(){
}
}//end class registrationForMeeting
?>
can you help me if theres something wrong in my code.
Thank you.twigletmac | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]