Ben adı "üye" alan "ad" olan, "kolej", "e-posta", "ZID" şimdi ben gibi (php) bir sınıf oluşturduk ile DB bir tablo oluşturduk
class member
{
private $name,$college,$email,$zid;
private function adduser
{
//function definition
}
public function autherise($id)
{
//function definition
}
}
now at index page I am taking these value as input from user using html form(validated by JS) now at action page of form I want to create object as obj=new member(); then calling the class function as obj->autherise($_post['zid']); I want the defintion of autherise and adduser function like autherise check the uniqueness of zid and the calls adduser with remaining post variables and store them to object then add whole object in one query to DB.
I dont wan
insert into member(name,email,college,zid) values('$name,$email,$college,$zid')
I want to enter obj directly to the db
Siz fonksiyonları şey değiştirebilir
Şimdiden teşekkürler!