Hi..........now i want to create an mailbox......i have this code........but i really dont know how to proceed with this. now just i want to create an static table containing from,to,subject,contents. so with this i should be possible to create an inbox......as soon as i click on inbox i should be able to see from subject and date.........and if i click on this i should be able to see the contents.......so i want the entire code like how to proceed with this..........help me
function getdata($tble,$field,$whr) {
$q="SELECT $field FROM $tble where $whr";
$res=mysql_query($q);
$r=mysql_fetch_array($res);
return $r[0];
}
$msgcount=getdata("messages","count(*)","status=0");?>
<a href="inbox.php?read" >inbox(<?=$msgcount; ?>)</a>
function getdata($tble,$field,$whr)
{ $q="SELECT $field FROM $tble where $whr"; $res=mysql_query($q); $r=mysql_fetch_array($res); return $r[0]; } $msgcount=getdata("messages","count(*)","status=0");?>
<a href="inbox.php?read" >inbox(<?=$msgcount; ?>)</a>