Hi i have created an static table having from,subject,date etc and i am just able to display
i have created inbox in the front end how to link.....these table to inbox...i have this code but what is this fuction getdata.....how to proceed just help me pls......
<?
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>