Yeah, Select from oc table where the driver/we/ee is the user and the id is the oc id..
Here's the OC code from where the message is sent...
if ($oc->we != "0"){
echo "You need to kick the Weapons expert before you invite someone else.";
}elseif ($oc->we == "0"){
$invite_text="<form name=invite_to_oc method=post action=?accept=oc&oc_id=$oc->id>
<div align=center>You have been invited to join $username s Getaway in $lead->location, please
choose one of the following options:<br>
<input name=Decline class=button type=submit id=Decline value=Decline>
|
<input name=Accept_OC type=submit class=button id=Accept value=Accept>
</div>
</form>";
mysql_query("INSERT INTO `inbox` ( `id` , `to` , `from` , `message` , `date` , `read` )
VALUES (
'', '$inv_username', '$inv_username', '$invite_text', '$date', '0'
)");
echo "Weapons expert invited";
mysql_query("UPDATE oc SET we_inv='$inv_username' WHERE id='$oc->id'");